Bug 16129

Summary: Remove URL::Encode dependency
Product: Koha Reporter: Tomás Cohen Arazi (tcohen) <tomascohen>
Component: OPACAssignee: Tomás Cohen Arazi (tcohen) <tomascohen>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: brendan, julian.maurice, martin.renvoize, nick
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 11622    
Bug Blocks:    
Attachments: Bug 16129: Remove URL::Encode dependency
Bug 16129: Remove URL::Encode dependency
Bug 16129: Remove URL::Encode dependency

Description Tomás Cohen Arazi (tcohen) 2016-03-22 23:04:02 UTC
Bug 11622 introduced a dependency which can be avoided. This is important to avoid packaging it.
Comment 1 Tomás Cohen Arazi (tcohen) 2016-03-22 23:54:26 UTC Comment hidden (obsolete)
Comment 2 Nick Clemens (kidclamp) 2016-03-31 19:06:07 UTC Comment hidden (obsolete)
Comment 3 Nick Clemens (kidclamp) 2016-03-31 19:07:40 UTC
Worked as advertised
Comment 4 Martin Renvoize (ashimema) 2016-04-01 14:26:42 UTC
Created attachment 49791 [details] [review]
Bug 16129: Remove URL::Encode dependency

This patch makes the PayPal integration feature independent from the
URL::Encode library, which is absent in some supported distributions.

It uses the URI package which is already a Koha dependency.

To test:
- Apply the patch
- Notice there are no deps for URL::Encode
- Follow the steps from the original patch
=> SUCCESS: It works as expected
- Sign-off :-D

Note: I deleted the line in which $amount_to_pay was url-encoded, because that's
one of the things query_form does (and the variable is only used as a parameter to it).

Sponsored-by: ByWater Solutions

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 5 Martin Renvoize (ashimema) 2016-04-01 14:27:18 UTC
Good move Tomas, works as advertised, removes the dependency without causing any issues.
Comment 6 Brendan Gallagher 2016-04-01 18:48:45 UTC
Pushed to Master - Should be in the 2016 release.  Thanks!
Comment 7 Julian Maurice 2016-04-07 07:43:32 UTC
Not needed in stable versions, status changed to RESOLVED