From: GeoNetwork o. D. w. <tra...@os...> - 2011-11-30 08:24:11
|
#683: Editing / Ajax mode / add attribute with namespace support ---------------------+------------------------------------------------------ Reporter: fxp | Owner: geonetwork-devel@… Type: defect | Status: new Priority: major | Milestone: Future release Component: General | Version: Keywords: | ---------------------+------------------------------------------------------ When adding an attribute having a namespace using Ajax mode, an exception is thrown : {{{ 2011-11-29 20:24:57,519 INFO [jeeves.service] - Dispatching : metadata.elem.add.new 2011-11-29 20:24:57,519 DEBUG [jeeves.service] - -> parameters are : <request> <child>geonet:attribute</child> <id>94</id> <ref>116</ref> <name>xlink:role</name> <_dc>1322594697508</_dc> </request> 2011-11-29 20:24:57,519 ERROR [jeeves.service] - Exception when executing service 2011-11-29 20:24:57,519 ERROR [jeeves.service] - (C) Exc : org.jdom.IllegalNameException: The name "xlink:role" is not legal for JDOM/XML attributes: Attribute names cannot contain colons. 2011-11-29 20:24:57,520 DEBUG [jeeves.service] - Raised exception while executing service <error id="error"> <message>The name "xlink:role" is not legal for JDOM/XML attributes: Attribute names cannot contain colons.</message> <class>IllegalNameException</class> <stack> <at class="org.jdom.Attribute" file="Attribute.java" line="361" method="setName" /> <at class="org.jdom.Attribute" file="Attribute.java" line="228" method="<init>" /> <at class="org.jdom.Attribute" file="Attribute.java" line="252" method="<init>" /> <at class="org.fao.geonet.services.metadata.AjaxEditUtils" file="AjaxEditUtils.java" line="314" method="addElementEmbedded" /> }}} The issue happens when turning on xlink attributes editing for example. Probably a method similar to applyChangesEmbedded using the COLON_SEPARATOR should be used. -- Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/683> GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/> 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. |