[BUGFIX] Send AJAX data in EXT:recycler as POST 45/57745/2
authorStephan Großberndt <stephan.grossberndt@typo3.org>
Tue, 31 Jul 2018 13:37:32 +0000 (15:37 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 1 Aug 2018 09:02:34 +0000 (11:02 +0200)
By sending the uids of the records to really delete or recover by POST
instead of GET an HTTP error "414 Request-URI too long" is avoided when
deleting many records at once.

Resolves: #85696
Releases: master, 8.7
Change-Id: Ia8b7d5330a281bdc7916001a6b29a857f91bb986
Reviewed-on: https://review.typo3.org/57745
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Willi Wehmeier <wwwehmeier@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/recycler/Resources/Public/JavaScript/Recycler.js

index c6f9af4..38d2eec 100644 (file)
@@ -472,6 +472,7 @@ define(['jquery',
 
     $.ajax({
       url: TYPO3.settings.ajaxUrls['recycler'],
+      type: 'POST',
       dataType: 'json',
       data: data,
       beforeSend: function() {