Issue 18824
didn't show result
18824
Reporter: feedback bot
Type: Feedback
Summary: didn't show result
Resolution: Fixed
Status: Closed
Created: 2016-11-23 18:24:46.034
Updated: 2017-10-06 12:31:48.37
Resolved: 2017-10-06 12:31:48.346
Author: mdoering@gbif.org
Created: 2016-11-23 21:20:04.066
Updated: 2016-11-23 21:20:04.066
API search works fine: http://api.gbif.org/v1/species/search?q=Psychidae+%7BBagworm+Moth%7D&dataset_key=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c
Portal throws this error:
{noformat}
ERROR [2016-11-23 21:16:12,612+0100] [http-bio-8080-exec-8072] com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor: java.net.URISyntaxException: Illegal character in query at index 92: http://api.gbif.org/v1/species/search?limit=20&offset=0&hlContext=100&q=Psychidae+%7BBagworm Moth%7D&spellCheck=false&hl=true&qField=VERNACULAR&qField=SCIENTIFIC&qField=DESCRIPTION&spellCheckCount=0&facetMultiselect=true&facetLimit=10&hlField=VERNACULAR&hlField=DESCRIPTION&DATASET_KEY=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&facet=DATASET_KEY&facet=IS_EXTINCT&facet=THREAT&facet=NAME_TYPE&facet=HABITAT&facet=CONSTITUENT_KEY&facet=HIGHERTAXON_KEY&facet=ISSUE&facet=RANK&facet=STATUS&facet=NOMENCLATURAL_STATUS&extended=true
javax.ws.rs.core.UriBuilderException: java.net.URISyntaxException: Illegal character in query at index 92: http://api.gbif.org/v1/species/search?limit=20&offset=0&hlContext=100&q=Psychidae+%7BBagworm Moth%7D&spellCheck=false&hl=true&qField=VERNACULAR&qField=SCIENTIFIC&qField=DESCRIPTION&spellCheckCount=0&facetMultiselect=true&facetLimit=10&hlField=VERNACULAR&hlField=DESCRIPTION&DATASET_KEY=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&facet=DATASET_KEY&facet=IS_EXTINCT&facet=THREAT&facet=NAME_TYPE&facet=HABITAT&facet=CONSTITUENT_KEY&facet=HIGHERTAXON_KEY&facet=ISSUE&facet=RANK&facet=STATUS&facet=NOMENCLATURAL_STATUS&extended=true
at com.sun.jersey.api.uri.UriBuilderImpl.createURI(UriBuilderImpl.java:723)
at com.sun.jersey.api.uri.UriBuilderImpl._build(UriBuilderImpl.java:651)
at com.sun.jersey.api.uri.UriBuilderImpl.build(UriBuilderImpl.java:641)
at com.sun.jersey.api.client.WebResource.(WebResource.java:88)
at com.sun.jersey.api.client.WebResource.queryParams(WebResource.java:459)
at org.gbif.ws.client.BaseWsClient.getResource(BaseWsClient.java:99)
at org.gbif.ws.client.BaseWsClient.get(BaseWsClient.java:165)
at org.gbif.ws.client.BaseWsSearchClient.search(BaseWsSearchClient.java:52)
at org.gbif.ws.client.interceptor.HttpErrorResponseInterceptor.invoke(HttpErrorResponseInterceptor.java:47)
at org.gbif.portal.action.BaseSearchAction.execute(BaseSearchAction.java:189)
at org.gbif.portal.action.BaseFacetedSearchAction.execute(BaseFacetedSearchAction.java:95)
at org.gbif.portal.action.species.SearchAction.execute(SearchAction.java:75)
Caused by: java.net.URISyntaxException: Illegal character in query at index 92: http://api.gbif.org/v1/species/search?limit=20&offset=0&hlContext=100&q=Psychidae+%7BBagworm Moth%7D&spellCheck=false&hl=true&qField=VERNACULAR&qField=SCIENTIFIC&qField=DESCRIPTION&spellCheckCount=0&facetMultiselect=true&facetLimit=10&hlField=VERNACULAR&hlField=DESCRIPTION&DATASET_KEY=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&facet=DATASET_KEY&facet=IS_EXTINCT&facet=THREAT&facet=NAME_TYPE&facet=HABITAT&facet=CONSTITUENT_KEY&facet=HIGHERTAXON_KEY&facet=ISSUE&facet=RANK&facet=STATUS&facet=NOMENCLATURAL_STATUS&extended=true
at java.net.URI$Parser.fail(URI.java:2848)
at java.net.URI$Parser.checkChars(URI.java:3021)
at java.net.URI$Parser.parseHierarchical(URI.java:3111)
at java.net.URI$Parser.parse(URI.java:3053)
at java.net.URI.(URI.java:588)
at com.sun.jersey.api.uri.UriBuilderImpl.createURI(UriBuilderImpl.java:721)
... 176 common frames omitted
{noformat}
If you search for {noformat}Psychidae {Bagworm Moth}{noformat} the portal will Ooops