#379: Deleting an element can remove the following element.
--------------------------+-------------------------------------------------
Reporter: justinrowles | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.6.2
Component: General | Version: v2.6.1
Keywords: |
--------------------------+-------------------------------------------------
If an element is removed which is the last of its kind, but not the last
in its parent, the geonet:child element created overwrites the following
element.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/379>
GeoNetwork opensource Developer website <http://trac.osgeo.org/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.
#379: Deleting an element can remove the following element.
--------------------------+-------------------------------------------------
Reporter: justinrowles | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: critical | Milestone: v2.6.2
Component: General | Version: v2.6.1
Keywords: |
--------------------------+-------------------------------------------------
Changes (by justinrowles):
* priority: major => critical
Comment:
The attached diff makes two changes.
(1) The new geonet:child element in INSERTED at the index from which the
old element was deleted. Previously it was SET, which overwrote anything
following the element to be deleted.
(2) There was a null pointer exception caused by a log instead of a throw
IllegalStateException (which is what is done at similar points), where the
code went on to dereference the null element anyway.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/379#comment:1>
GeoNetwork opensource Developer website <http://trac.osgeo.org/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.