Project

General

Profile

Actions

Bug #6435

closed

Solr queries with certain URL-encoded characters are decoded twice

Added by Lauren Walker over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
02/28/2014
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:

Description

The one character I know is a problem is + (%2B). When %2B is sent in a Solr query, Metacat seems to decode it twice - so that the second time it is decoded, it is interpreted as a space character, causing a Solr syntax error. The MetacatSolrIndex class decodes the query string after D1Httprequest has already decoded it.

Example query is:

https://knb.ecoinformatics.org/knb/d1/mn/v1/query/solr/q=*:*&facet=true&facet.date=dateUploaded&facet.date.start=NOW-2MONTHS&facet.date.end=NOW&facet.date.gap=%2B1MONTH&wt=xml&rows=0

Actions

Also available in: Atom PDF