Bug 24553 solved the issue related to non-waiting holds returning errors when canceled. However, if a hold is waiting and canceled, the SIP server will return the incorrect error message "No such hold on patron record." even though the hold canceled just fine.
Created attachment 121437 [details] [review] Bug 28464: Add unit tests
Created attachment 121438 [details] [review] Bug 28464: Remove useless check that gives the incorrect error message
Created attachment 122199 [details] [review] Bug 28464: Add unit tests Signed-off-by: David Nind <david@davidnind.com>
Created attachment 122200 [details] [review] Bug 28464: Remove useless check that gives the incorrect error message Signed-off-by: David Nind <david@davidnind.com>
Testing notes (koha-testing-docker): - Ran prove t/db_dependent/SIP/ILS.t before and after patches applied - Tests passed both before and after - Hope that is sufficient to test!
Is it a bit weird that waiting holds can be cancelled via SIP2, but not the UI? See bug 22456.
Created attachment 124722 [details] [review] Bug 28464: Add unit tests Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Created attachment 124723 [details] [review] Bug 28464: Remove useless check that gives the incorrect error message Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Created attachment 124724 [details] [review] Bug 28464: (QA follow-up) Correct test plan Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
First and last patches will be squashed when pushed.
Pushed to master for 21.11, thanks to everybody involved!
Pushed to 21.05.x for 21.05.05
Pushed to 20.11.x for 20.11.11