[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded

2022-03-24 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Katrin Fischer  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=30356

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded

2019-06-06 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Nick Clemens  changed:

   What|Removed |Added

 Status|In Discussion   |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #12 from Nick Clemens  ---
Seems to be fixed in master

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

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded

2018-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

--- Comment #11 from David Cook  ---
Ah Jonathan is all over this at #21526

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded

2018-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

David Cook  changed:

   What|Removed |Added

   See Also||https://bugs.koha-community
   ||.org/bugzilla3/show_bug.cgi
   ||?id=21526

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded

2018-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

--- Comment #10 from David Cook  ---
Just realized that Katrin's comment is from February 2017.

I see there is a html filter on the OPAC template:

[% facet.facet_label_value | html
%]

I have no idea why we're html escaping the URL...

But it does seem to work...

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded

2018-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

--- Comment #9 from David Cook  ---
(In reply to Katrin Fischer from comment #7)
> I think we see this happen with single quotes in an author name in facets.
> The name is: Kum'a N'dumbe. A keyword search for the name works, but when
> you search au:Kum'a N'dumbe - no results. Same when you click on the facet
> with this name:
> 
> 
> /cgi-bin/koha/catalogue/search.
> pl?idx=kw=kamerun_by=relevance_dsc=au:Kum'a N'dumbe, Alexandre

This is the URL that appears for my facets in master:

/cgi-bin/koha/opac-search.pl?idx=kwq=testsort_by=relevance_dsclimit=au:Kum%27a%20N%27dumbe,%20Alexandre

The URL works although it does look like the ampersands are being erroneously
escaped as well...

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded

2018-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

--- Comment #8 from David Cook  ---
(In reply to Katrin Fischer from comment #7)
> I think we see this happen with single quotes in an author name in facets.
> The name is: Kum'a N'dumbe. A keyword search for the name works, but when
> you search au:Kum'a N'dumbe - no results. Same when you click on the facet
> with this name:
> 
> 
> /cgi-bin/koha/catalogue/search.
> pl?idx=kw=kamerun_by=relevance_dsc=au:Kum'a N'dumbe, Alexandre

Thanks for that info. I'll try to reproduce this one, and see about writing a
quick patch...

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded

2018-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Jonathan Druart  changed:

   What|Removed |Added

 CC||jonathan.dru...@bugs.koha-c
   ||ommunity.org

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded

2017-12-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Katrin Fischer  changed:

   What|Removed |Added

Summary|Facet links broken because  |Facet links broken because
   |double-quotes are not URL   |double-quotes are not URL
   |encoded.|encoded

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2017-10-16 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Frank Hansen  changed:

   What|Removed |Added

 CC||frank.han...@ub.lu.se

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2017-02-23 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Katrin Fischer  changed:

   What|Removed |Added

 CC||katrin.fisc...@bsz-bw.de

--- Comment #7 from Katrin Fischer  ---
I think we see this happen with single quotes in an author name in facets. The
name is: Kum'a N'dumbe. A keyword search for the name works, but when you
search au:Kum'a N'dumbe - no results. Same when you click on the facet with
this name:


/cgi-bin/koha/catalogue/search.pl?idx=kw=kamerun_by=relevance_dsc=au:Kum'a
N'dumbe, Alexandre

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2016-12-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Nicole C. Engard  changed:

   What|Removed |Added

 CC|neng...@gmail.com   |

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2015-08-25 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Heather Braum hbr...@nekls.org changed:

   What|Removed |Added

 CC||hbr...@nekls.org

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2015-04-20 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

--- Comment #6 from David Cook dc...@prosentient.com.au ---
I can't reproduce this on master either. It looks like the problem caused by:

https://library.roseville.ca.us/cgi-bin/koha/opac-search.pl?q=su:%22Fairies.%22

is specific to either 3.16.4 or a modification that Bywater have made to that
Koha instance.

Here's a link that I see in the Roseville site for the query
https://library.roseville.ca.us/cgi-bin/koha/opac-search.pl?q=su:%22Fairies.%22:

a href=/cgi-bin/koha/opac-search.pl?q=ccl=su%3A
fairies.amp;sort_by=relevance_ascamp;limit=au:Colfer%2C%20Eoin.quot;
title=Colfer, Eoin.Colfer, Eoin./a

However, my query for
http://192.168.1.61:2112/cgi-bin/koha/catalogue/search.pl?q=su:%22Fairies.%22

creates the following link:

a
href=/cgi-bin/koha/catalogue/search.pl?q=ccl=su%3A%22Fairies.%22amp;sort_by=relevance_dscamp;limit=itype:TEST
title=TESTtest/a

I suspect that the following line in C4::Search::buildQuery() was added after
3.16.4:

$limit_cgi   .= limit= . uri_escape_utf8($this_limit);

Although it looks like the Roseville site is also doing something with
lowercasing and possibly whitespace as well...

---

I suspect that the current patch might cause problems if it's used since it
removes the TracingQuotesLeft and TracingQuotesRight, which are { and } with
ICU, and only  and  with non-ICU.

In any case, this doesn't appear to be a problem in master.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2015-04-16 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Nick Clemens n...@quecheelibrary.org changed:

   What|Removed |Added

 Status|Needs Signoff   |In Discussion
 CC||n...@quecheelibrary.org

--- Comment #5 from Nick Clemens n...@quecheelibrary.org ---
Is tis still valid on master?  I can't recreate, could use a test plan.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2015-04-06 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

David Cook dc...@prosentient.com.au changed:

   What|Removed |Added

 CC||dc...@prosentient.com.au

--- Comment #4 from David Cook dc...@prosentient.com.au ---
(In reply to Kyle M Hall from comment #3)
 Patch removes quotes. Another possibility would be to escape or encode the
 quotes, but I'm not well versed enough with the XSLT to do so.

We could register an extension function with XML::LibXSLT, using
XML::LibXSLT::register_function(), that allows us to escape or encode quotes.
While I think XSLT 2.0 has a uri encoding function, XSLT 1.0 doesn't, so
extension functions have to be used.

I thought about adding this to the XSLT handler, but it's a global option, so
we can just set it after use XML::LibXSLT to make the extension function
available. (I wonder a bit about the repercussions while using Plack, but I
don't yet know enough about Plack to really speculate on that one. I suppose it
depends on the scope in which XML::LibXSLT is loaded.)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2015-04-06 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

--- Comment #2 from Kyle M Hall k...@bywatersolutions.com ---
Created attachment 37528
  --
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37528action=edit
Bug 13812 - Facet links broken because double-quotes are not URL encoded.

This bug is analogous to Bug 13442, but it affects shelf location rather than
collection code:

Limiting a search by shelf location is broken, because it wraps double-quotes
around the value part of the key-value pair in the URL. This breaks the href=
part of the anchor tag.

The anchor tag generated for the shelf location faced is

a
href=/cgi-bin/koha/opac-search.pl?limit=mc-loc%3A100100ADFICCFlimit=mc-loc%3A100200ADFIClimit=mc-loc%3A100250ADFICGNlimit=mc-loc%3A100300ADFICHFlimit=yr%2Cst-numeric%3D2014-amp;sort_by=acqdate_dscamp;limit=au:Paetro%2C%20Maxine%2C
title=Paetro, Maxine,Paetro, Maxine,/a

Once again, double-quotes inside the URL are causing a premature close of the
href, which results in a broken link.

http://bugs.koha-community.org/show_bug.cgi?id=13821

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2015-04-06 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Kyle M Hall k...@bywatersolutions.com changed:

   What|Removed |Added

 CC||k...@bywatersolutions.com
 Status|NEW |Needs Signoff

--- Comment #3 from Kyle M Hall k...@bywatersolutions.com ---
Patch removes quotes. Another possibility would be to escape or encode the
quotes, but I'm not well versed enough with the XSLT to do so.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2015-03-18 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

jdem...@roseville.ca.us jdem...@roseville.ca.us changed:

   What|Removed |Added

 CC||jdem...@roseville.ca.us

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2015-03-18 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Barton Chittenden bar...@bywatersolutions.com changed:

   What|Removed |Added

Summary|Facet links broken when |Facet links broken because
   |shelf location limit is |double-quotes are not URL
   |used.   |encoded.

--- Comment #1 from Barton Chittenden bar...@bywatersolutions.com ---
(In reply to Barton Chittenden from comment #0)
 This bug is analogous to Bug 13442, but it affects shelf location rather
 than collection code:
 
 Limiting a search by shelf location is broken, because it wraps
 double-quotes around the value part of the key-value pair in the URL. This
 breaks the href= part of the anchor tag.
 
 The anchor tag generated for the shelf location faced is
 
 a
 href=/cgi-bin/koha/opac-search.pl?limit=mc-loc%3A100100ADFICCFlimit=mc-
 loc%3A100200ADFIClimit=mc-loc%3A100250ADFICGNlimit=mc-
 loc%3A100300ADFICHFlimit=yr%2Cst-numeric%3D2014-amp;
 sort_by=acqdate_dscamp;limit=au:Paetro%2C%20Maxine%2C title=Paetro,
 Maxine,Paetro, Maxine,/a
 
 Once again, double-quotes inside the URL are causing a premature close of
 the href, which results in a broken link.
 
 I think that we need to take a look for code duplication inside
 C4::Search::buildQuery -- if there's more than one section of code where
 we're wrapping quotes around the 'value' part of the query, these should be
 consolidated -- shouldn't we be using URL encoding for URL reserved
 characters anyway?

I found another example, this time in facets under Subject:

Starting here:

https://library.roseville.ca.us/cgi-bin/koha/opac-detail.pl?biblionumber=35767query_desc=kw%2Cwrdl%3A%20Fairies

Click on Subject: Faries ... this leads us here:

https://library.roseville.ca.us/cgi-bin/koha/opac-search.pl?q=su:Fairies.;

All of the facets on this page are broken, because the quotes are passed
straight in, without being URL encoded. Here's an example from the HTML of that
page:

span class=facet-labela
href=/cgi-bin/koha/opac-search.pl?q=ccl=su%3AFairies.amp;sort_by=relevance_ascamp;limit=su-to:Magic
title=MagicMagic/a/span

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 13812] Facet links broken because double-quotes are not URL encoded.

2015-03-18 Thread bugzilla-daemon
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13812

Nicole C. Engard neng...@gmail.com changed:

   What|Removed |Added

 CC||neng...@gmail.com
   Severity|enhancement |normal
Version|unspecified |master

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/