Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Kyle M Hall 237c1483dd Bug 14743: addorder.pl redirect problems under plack behind apache 2.4.10
I can't quite figure this out. When I run CGI version of Koha, I see following response (recorded using tcpdump):

HTTP/1.1 302 Found
Date: Thu, 27 Aug 2015 13:28:41 GMT
Server: Apache/2.4.10 (Debian)
Location: /cgi-bin/koha/acqui/basket.pl?basketno=5610
Vary: User-Agent
Content-Length: 0
Keep-Alive: timeout=5, max=98
Connection: Keep-Alive
Content-Type: text/x-perl

However, when running behind apache 2.4.10 on Debian wheezy I see chunked response:

HTTP/1.1 302 Found
Date: Thu, 27 Aug 2015 13:21:28 GMT
Server: Apache/2.4.10 (Debian)
Vary: User-Agent
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/x-perl

60
Transfer-Encoding: chunked
Date: Thu, 27 Aug 2015 13:21:28 GMT
Connection: keep-alive

0

0

This response doesn't work in firefox (where it reports page not found) nor in chrome (where it returns lines below 60 on screen).

In the template the hidden input 'basketno' is listed twice. What the cgi script reads in the parameter, what is does is concat the values of the multiple basketno instances together createing what is likely an invalid basketno. For reasons beyond my understanding this is what triggers this error!

Test Plan:
1) Using plack, add an order to a basket from an external source
2) Note the error
3) Apply this patch
4) Add an order to a basket from an external source
5) Note you get no error!

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-11-10 09:28:47 -03:00
..
csv Bug 7298: (follow-up) fix translation for CSV strings 2013-10-31 15:51:45 +00:00
tables Bug 13891: DataTables server-side processing - budget users 2015-04-13 10:55:13 -03:00
acqui-home.tt Bug 13619: Acq home: ensure 'manage suggestions' goes to pending suggestions 2015-06-05 12:53:10 -03:00
addorder.tt Bug 13941: QA Follow-up - fix for acqui/addorder.tt 2015-04-24 09:47:48 -03:00
addorderiso2709.tt Bug 14163: Acq - receive shipment and order from staged: rename 'Show all' to 'Show inactive' 2015-07-08 14:43:54 -03:00
ajax.tt
basket.tt Bug 15123: Acquisition: Better context for "Transferred from..." to avoid ambiguity in translation 2015-11-05 09:51:41 -03:00
basketgroup.tt Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet 2015-10-27 10:02:42 -03:00
basketheader.tt Bug 11805 - Use validation plugin when creating new basket in Acquisitions 2014-02-27 15:44:48 +00:00
booksellers.tt Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet 2015-10-27 10:02:42 -03:00
cancelorder.tt Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
histsearch.tt Bug 13946: Change order status 'Pending' to 'Ordered' 2015-05-27 14:33:49 -03:00
invoice-files.tt Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
invoice.tt Bug 10181: Acq - Improve message for deleted records 2015-10-02 15:06:48 -03:00
invoices.tt Bug 14915: (QA followup) Replace fa-remove-sign with fa-times-circle 2015-10-27 10:03:06 -03:00
lateorders.tt Bug 14423: XSS bug in lateorders 2015-06-23 10:11:57 -03:00
modordernotes.tt Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
neworderbiblio.tt Bug 12565: Acq: Fix broken link in breadcrumbs 2014-12-19 15:12:14 -03:00
neworderempty.tt Bug 14743: addorder.pl redirect problems under plack behind apache 2.4.10 2015-11-10 09:28:47 -03:00
neworderempty_duplicate.tt Bug 7760: Add unique ids and a module class to all acquisitions pages 2012-03-22 18:11:54 +01:00
newordersubscription.tt Bug 10971: Hide EAN search for MARC21 / template corrections 2015-04-24 20:14:52 -03:00
newordersuggestion.tt Bug 14018: Ordering from suggestion shows 'copy. year:2014' 2015-05-06 15:26:28 -03:00
ordered.tt Bug 12089: Remove use of dt_add_type_uk_date() - Acquisitions 2014-04-28 18:41:28 +00:00
orderreceive.tt Bug 8417: Make the order receive date editable 2015-10-19 14:51:50 -03:00
parcel.tt Bug 13320: Fix "Tax inc." vs "Tax exc." 2015-02-04 15:16:15 -03:00
parcels.tt Bug 14343: Remove the DT pagination 2015-09-07 11:48:14 -03:00
spent.tt Bug 12089: Remove use of dt_add_type_uk_date() - Acquisitions 2014-04-28 18:41:28 +00:00
supplier.tt Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet 2015-10-27 10:02:42 -03:00
transferorder.tt Bug 15117: Transfer Order: Better user information and translation handling 2015-11-06 12:03:58 -03:00
uncertainprice.tt Bug 6059: Don't permit to change the quantity when items are created on ordering 2015-04-30 16:33:37 -03:00
z3950_search.tt Bug 7741 [Follow-up] Clear search terms in Z3950 search page 2015-02-16 23:40:08 -03:00