Issue 13924

Dataset details Oops

Reporter: jlegind
Assignee: kbraak
Type: Bug
Summary: Dataset details Oops
Priority: Blocker
Resolution: Fixed
Status: Closed
Created: 2013-09-16 12:24:58.187
Updated: 2013-10-01 17:45:21.236
Resolved: 2013-10-01 17:45:21.203
Description: Example dataset:

Go to Explore data by country and choose Finland.
Under the "Latest datasets published"  there are six resources listed (out of 51 total). Only two out of those six return the valid dataset page. The following return the Oops... page:

- Herbarium J Räsänen
- Myxomycetes collection...
- Fungi collection of the UNiversity of Eastern Finland
- The genus Dichopygina...

I gather that this is not an issue exclusive to FInland.

*Reporter*: jlegind
*E-mail*: [mailto:jlegind]]]>

Created: 2013-09-16 13:30:11.259
Updated: 2013-09-16 13:30:11.259
The error is:

INFO  [2013-09-16 13:29:15,981+0200] [http-bio-8080-exec-186]$$EnhancerByGuice$$f0d335a8: Creating new CubeWsClient$$EnhancerByGuice$$f0d335a8 using webservices at
ERROR [2013-09-16 13:29:16,432+0200] [http-bio-8080-exec-186] com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring( ~[na:1.7.0_19]
	at freemarker.core.StringBuiltins$substringBI$1.exec( ~[freemarker-2.3.20.jar:2.3.20]
	at freemarker.core.MethodCall._eval( ~[freemarker-2.3.20.jar:2.3.20]
	at freemarker.core.Expression.eval( ~[freemarker-2.3.20.jar:2.3.20]
	at freemarker.core.Assignment.accept( ~[freemarker-2.3.20.jar:2.3.20]
	at freemarker.core.Environment.visit( ~[freemarker-2.3.20.jar:2.3.20]
	at freemarker.core.MixedContent.accept( ~[freemarker-2.3.20.jar:2.3.20]


Created: 2013-09-26 15:28:33.979
Updated: 2013-09-26 15:28:33.979
Confirmed that both of these give Oooops:

Created: 2013-10-01 17:25:50.612
Updated: 2013-10-01 17:25:50.612
Problem was in freemarker, parsing the Dataset Installation Feed URL. Change committed in In this way, the problem would happen for datasets hosted by that particular IPT Installation.

The bad Feed URL was also corrected here:


Comment: Fixed. Closing issue.
Created: 2013-10-01 17:45:21.234
Updated: 2013-10-01 17:45:21.234