[GeoNetwork-devel] [GeoNetwork opensource Developer website] #1234: Thesaurus / Add keyword to newly created local thesaurus return exception

#1234: Thesaurus / Add keyword to newly created local thesaurus return exception
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: Future release
Component: General | Version: v2.9.0
Keywords: |
---------------------+------------------------------------------------------
{{{
2013-03-10 05:11:38,727 INFO [jeeves.request] -

2013-03-10 05:11:38,727 INFO [jeeves.request] - HTML Request (from
127.0.0.1) : /geonetwork/srv/eng/thesaurus.addelement
2013-03-10 05:11:38,727 DEBUG [jeeves.request] - Method : POST
2013-03-10 05:11:38,728 DEBUG [jeeves.request] - Content type : text/xml
2013-03-10 05:11:38,728 DEBUG [jeeves.request] - Accept : */*
2013-03-10 05:11:38,728 DEBUG [jeeves.request] - Session id is
19bx85jxw1qmun25gtjz20vng
2013-03-10 05:11:38,729 INFO [jeeves.service] - Dispatching :
thesaurus.addelement
2013-03-10 05:11:38,731 ERROR [jeeves.service] - Exception when executing
service
2013-03-10 05:11:38,731 ERROR [jeeves.service] - (C) Exc :
java.lang.IllegalArgumentException: namespace must not be null
2013-03-10 05:11:38,731 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
   <message>namespace must not be null</message>
   <class>IllegalArgumentException</class>
   <stack>
     <at class="org.openrdf.model.impl.URIImpl" file="URIImpl.java"
line="167" method="&lt;init&gt;" />
     <at class="org.openrdf.sesame.sailimpl.memory.RdfSource"
file="RdfSource.java" line="758" method="createURI" />
     <at class="org.fao.geonet.kernel.Thesaurus" file="Thesaurus.java"
line="303" method="addElement" />
     <at class="org.fao.geonet.services.thesaurus.AddElement"
file="AddElement.java" line="92" method="exec" />
}}}

When catalog is restarted, the namespace is set (with "#") and the error
is not triggered.

Proposal:
  * set default namespace for local thesaurus
  * or add namespace to local thesaurus creation parameters

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1234&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#1234: Thesaurus / Add keyword to newly created local thesaurus return exception
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: Future release
Component: General | Version: v2.9.0
Keywords: |
---------------------+------------------------------------------------------

Comment(by jesseeichar):

I like setting an explicit namespace in creation params although there may
be backwards compatilbity issues so a default local NS is probably easier
and less likely to be buggy.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1234#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#1234: Thesaurus / Add keyword to newly created local thesaurus return exception
----------------------+-----------------------------------------------------
  Reporter: fxp | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: major | Milestone: Future release
Component: General | Version: v2.9.0
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by fxp):

  * status: new => closed
  * resolution: => fixed

Comment:

master commit c12529660f90ad6f7a3aa4dcd94f254f98635bed

See #1251 to be able to set thesaurus title and namespace for local
thesaurus.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1234#comment:2&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#1234: Thesaurus / Add keyword to newly created local thesaurus return exception
----------------------+-----------------------------------------------------
  Reporter: fxp | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: major | Milestone: v2.10.0 RC2
Component: General | Version: v2.9.0
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by ianwallen):

  * milestone: Future release => v2.10.0 RC2

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1234#comment:3&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.