]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP 1444130: Add max_chunk_size guards to Holds.pm.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 14 Apr 2015 14:43:49 +0000 (10:43 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 27 Apr 2015 15:01:50 +0000 (11:01 -0400)
commit7ec3ea5ef54dd1c3651bc8f4ec2575f2308c4ae3
tree283b5a8b3941967926ee5f635cd9f064a55e0a79
parent6b0d8e7c2f72431efb3cacaaa9603f0c9dd15cf2
LP 1444130: Add max_chunk_size guards to Holds.pm.

Web staff client fixes introduced a bug in using the Clear
Holds Shelf checkin modifier.  Commit 4ccbf980 added calls
to max_chunk_size on the client to use chunked responses for
better feedback during long operations.  Thise works just
fine when a regular OpenSRF AppRequest is used, but leads to
a network error when AppSubrequest is used, as apparently the
xul client does with the Clear Holds Shelf checkin modifier.

This commit adds code to check if the client object can do
the max_chunk_size call when the max_chunk_size call is
made.  This will prevent the network errors in cases where
the client is an AppSubrequest object and will still use
chunked responses when the client is capable of doing it.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm