Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 14743: addorder.pl redirect problems under plack behind apache 2.4.10 2015-11-10 09:28:47 -03:00
admin Bug 8064: Merge several biblios 2015-11-09 15:08:57 -03:00
authorities Bug 14915: (QA followup) Replace fa-hdd with fa-save 2015-10-27 10:03:24 -03:00
basket Bug 14915: (QA followup) Replace fa-zoom-in and fa-zoom-out 2015-10-27 10:03:51 -03:00
batch
catalogue Bug 14544: QA fixes - some minor bug fixes 2015-11-05 10:00:31 -03:00
cataloguing Bug 8064: Little fix for 003, 005, 008 in MARC21 2015-11-09 15:08:57 -03:00
circ Bug 12933: (QA followup) Add missing notice templates and other small fixes 2015-11-04 12:41:29 -03:00
common Bug 14676: UI/UX improvements to patron card creator 2015-10-20 14:22:00 -03:00
course_reserves Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet 2015-10-27 10:02:42 -03:00
errors Bug 14574: Fixing error messages on staff client so they make more sense 2015-08-18 13:18:22 -03:00
help Bug 11431: (QA followup) Typo in help file / variable name 2015-11-04 12:33:44 -03:00
installer Bug 15005: Replace CGI->url with the corresponding url 2015-10-19 09:36:43 -03:00
labels bug 15112: Make greybox consistent size across label/card creator 2015-11-05 09:51:03 -03:00
members Bug 15146: Format date of birth on patrons requesting modification page 2015-11-06 15:03:48 -03:00
offline_circ Bug 14321: Integrate Upload.pm into Koha 2015-09-25 12:02:52 -03:00
patron_lists Bug 14915: (QA followup) Replace fa-remove-sign with fa-times-circle 2015-10-27 10:03:06 -03:00
patroncards Bug 14632: (QA followup) Restore missing "Delete batch" button. 2015-11-06 12:04:57 -03:00
plugins Bug 13941: [2/2] Fix <body> tags missing id/class 2015-04-24 09:47:38 -03:00
reports Bug 14100: (follow-up) Language overlay for item types 2015-10-27 12:34:06 -03:00
reserve Bug 12197: enforce the maxreserves preference when staff members place hold requests 2015-10-22 09:38:53 -03:00
reviews
rotating_collections Bug 15061: Can't add item to rotating collection 2015-11-04 10:44:33 -03:00
serials Bug 8296: Follow-up - don't display publisheddate when publisheddatetext is empty 2015-11-05 10:41:29 -03:00
services
sms
suggestion Bug 9468: use new SUGGEST_FORMAT list 2015-11-05 10:46:57 -03:00
tags
test Bug 14321: Final cleanup, removing obsolete files 2015-09-25 12:02:52 -03:00
tools Bug 12540: Display "Every" on editing a MMT action if previously selected 2015-11-09 12:06:52 -03:00
virtualshelves Bug 8064: Merge several biblios 2015-11-09 15:08:57 -03:00
about.tt Bug 11559: (QA followup) fix QA issues 2015-10-27 12:22:05 -03:00
auth.tt Bug 11559: Supporting changes for Rancor 2015-10-27 12:16:05 -03:00
intranet-main.tt Bug 12428: QA Follow-up: Wrap borrower's title in a span to make it possible to hide 2015-10-27 16:26:42 -03:00