13924 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.203Description: Example dataset: http://portaldev.gbif.org/dataset/7e2dcc4f-6468-4b0a-bbd5-d63d3bc8b088 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]]]>
Author: trobertson@gbif.org
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] org.gbif.metrics.ws.client.CubeWsClient$$EnhancerByGuice$$f0d335a8: Creating new CubeWsClient$$EnhancerByGuice$$f0d335a8 using webservices at http://apidev.gbif.org/
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(String.java:1911) ~[na:1.7.0_19]
at freemarker.core.StringBuiltins$substringBI$1.exec(StringBuiltins.java:236) ~[freemarker-2.3.20.jar:2.3.20]
at freemarker.core.MethodCall._eval(MethodCall.java:98) ~[freemarker-2.3.20.jar:2.3.20]
at freemarker.core.Expression.eval(Expression.java:111) ~[freemarker-2.3.20.jar:2.3.20]
at freemarker.core.Assignment.accept(Assignment.java:106) ~[freemarker-2.3.20.jar:2.3.20]
at freemarker.core.Environment.visit(Environment.java:265) ~[freemarker-2.3.20.jar:2.3.20]
at freemarker.core.MixedContent.accept(MixedContent.java:93) ~[freemarker-2.3.20.jar:2.3.20]
Author: omeyn@gbif.org
Created: 2013-09-26 15:28:33.979
Updated: 2013-09-26 15:28:33.979
Confirmed that both of these give Oooops:
http://portaldev.gbif.org/dataset/7e2dcc4f-6468-4b0a-bbd5-d63d3bc8b088
http://uat.gbif.org/dataset/7e2dcc4f-6468-4b0a-bbd5-d63d3bc8b088
Author: kbraak@gbif.org
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 https://code.google.com/p/gbif-portal/source/detail?r=2388 In this way, the problem would happen for datasets hosted by that particular IPT Installation.
The bad Feed URL was also corrected here: http://gbrds.gbif.org/browse/agent?uuid=369b9874-5bd5-45dd-9db8-c29d6c3b5a72
Author: kbraak@gbif.org Comment: Fixed. Closing issue. Created: 2013-10-01 17:45:21.234 Updated: 2013-10-01 17:45:21.234