Bug 29208 - Double encoded percent signs in items.uri transformation
Summary: Double encoded percent signs in items.uri transformation
Status: RESOLVED DUPLICATE of bug 22223
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-12 10:16 UTC by Séverine Queune
Modified: 2021-10-13 10:07 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Séverine Queune 2021-10-12 10:16:36 UTC
When an URI is filled for a specific item, the "Link to resource" transforms the character '%' in '%25', which is a problem for some links using codes for non latin characters for example.

To reproduce : 

  - add the following link in the items's URI field :
https://bina.bulac.fr/search?query=%E6%9D%B1%E9%9B%85&query_type=exact_match&record_types%5B%5D=Item&submit_search=Search

  - use the "Link to resource" : you can see that no results are found because the URI is transformed in :
https://bina.bulac.fr/search?query=%25E6%259D%25B1%25E9%259B%2585&query_type=exact_match&record_types%255B%255D=Item&submit_search=Search

Bug seen in 20.11.10 and master 21.06.00.031 for both staff client and OPAC.
Not sure I choose the good component category...
Comment 1 Marcel de Rooy 2021-10-12 11:38:12 UTC
Could it be related to current changes for item code ?
Comment 2 Marcel de Rooy 2021-10-12 11:38:35 UTC
(In reply to Marcel de Rooy from comment #1)
> Could it be related to current changes for item code ?

Wait, probably not..
Comment 3 Jonathan Druart 2021-10-13 10:07:40 UTC
The patch on bug 22223 might fix your problem, Séverine.

*** This bug has been marked as a duplicate of bug 22223 ***