taupilu / gbif-providertoolkit

Automatically exported from code.google.com/p/gbif-providertoolkit
0 stars 1 forks source link

Error message from IPT with extension Germplasm accession (v20140515) #1132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When adding a new dataset either using a SQL database connection or direct 
upload of a delimited source datafile to the IPT software we see this same 
error message. The same error message is displayed for the IPT software 
installed at the Dutch GBIF node in Netherlands and at the Norwegian GBIF-node 
in Oslo. The same error message is displayed when upgrading to the latest IPT 
version (2.1.1-r4640).

Steps to reproduce the error message:
-------------------------------------
First and initial mapping to any of the germplasm extensions works fine, and 
will generate a functional Darwin Core archive including data mapped using this 
extension.

But when selecting "edit" for the mapping under manage resource, evaluate to 
NULL for mapping "[in template "WEB-INF/pages/manage/mapping.ftl" at line 111, 
column 118]".

When adding mapping for other extensions such as the MeasurementOrFact 
extension, edit on mapping works fine without any error message.

Additional information:
-----------------------

The germplasm extensions are available at:
http://rs.gbif.org/extension/germplasm/
http://rs.gbif.org/sandbox/extension/germplasm/20140515/

The registry registration for IPT extensions:
http://gbrds.gbif.org/registry/extensions.json
http://gbrdsdev.gbif.org/registry/extensions.json

Two example installations of IPT with datasets mapped to the germplasm 
extension:

http://www.cgn.ipt.wur.nl:8080/ipt/manage/resource.do?r=trait_10
http://www.cgn.ipt.wur.nl:8080/ipt/
Apache Tomcat/7.0.54
IPT version 2.1.1-r4640

http://gbifbeta.org:8080/ipt-2.1.1/manage/resource.do?r=test_traits
http://gbifbeta.org:8080/ipt-2.1.1/
Apache Tomcat/7.0.47
IPT version 2.1.1-r4640

Original issue reported on code.google.com by dag.endresen on 11 Dec 2014 at 10:28

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for reporting this issue.

Original comment by kyle.br...@gmail.com on 5 Jan 2015 at 10:18

GoogleCodeExporter commented 9 years ago
The problem has to do with the hashtag in the rowType. When included in the 
request URL it isn't properly escaped leading to the error reported here. 

In addition to the error on mapping, it also causes an error loading the 
extension detail page in the admin section:

http://localhost:8080/admin/extension.do?id=http://purl.org/germplasm/germplasmT
erm#GermplasmAccession

where the hashtag should be escaped like this:

http://localhost:8080/admin/extension.do?id=http://purl.org/germplasm/germplasmT
erm%23GermplasmAccession

** For developers, Freemarker provides the ?url built-in that could be used to 
escape the rowType for use in URLs

Original comment by kyle.br...@gmail.com on 21 Jan 2015 at 10:03

GoogleCodeExporter commented 9 years ago
An additional problem with this extension, is that not all terms appear on the 
mapping page - see screenshot.

Original comment by kyle.br...@gmail.com on 22 Jan 2015 at 6:45

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed by r4726. 

Before closing issue, apply patch attached to 
http://rs.gbif.org/extension/germplasm/GermplasmAccession.xml - it does not 
validate albeit in production

Original comment by kyle.br...@gmail.com on 22 Jan 2015 at 11:47

Attachments:

GoogleCodeExporter commented 9 years ago
Patch committed: 
https://github.com/gbif/rs.gbif.org/commit/4ba76183f08010019008766b50665cceeb586
d5f

Closing issue

Original comment by kyle.br...@gmail.com on 20 Mar 2015 at 1:04