[GeoNetwork-devel] [GeoNetwork opensource Developer website] #100: FGDC metadata validation causing StackOverflowError

#100: FGDC metadata validation causing StackOverflowError
----------------------------------------------+-----------------------------
Reporter: mattblanchette | Owner: geonetwork-devel@lists.sourceforge.net
     Type: defect | Status: new
Priority: critical | Milestone:
Component: General | Version: v2.2.0 Final
Keywords: FGDC, schema, StackOverflowError |
----------------------------------------------+-----------------------------
Attempting to validate FGDC metadata with long enough strings of text (for
example 1400 characters in the Abstract) causes a StackOverflowError from
the FGDCstring regular expression "\s*\S(.|\n|\r)*" in the schema.

Replacing this regular expression restriction in the FGDC schema.xsd with
whitespace collapsed and a minlength of 1 will prevent the Error.

Before:[[BR]]
<xsd:pattern value="\s*\S(.|\n|\r)*"/>

After:[[BR]]
<xsd:whiteSpace value="collapse"/>[[BR]]
<xsd:minLength value="1"/>

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/100&gt;
GeoNetwork opensource Developer website <http://trac.osgeo.org/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.

#100: FGDC metadata validation causing StackOverflowError
-----------------------------+----------------------------------------------
  Reporter: mattblanchette | Owner: geonetwork-devel@lists.sourceforge.net
      Type: defect | Status: closed
  Priority: critical | Milestone: v2.4.0 RC2
Component: General | Version: v2.2.0 Final
Resolution: fixed | Keywords: FGDC, schema, StackOverflowError
-----------------------------+----------------------------------------------
Changes (by ticheler):

  * status: new => closed
* cc: sspigot (added)
  * resolution: => fixed
  * milestone: => v2.4.0 RC2

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/100#comment:1&gt;
GeoNetwork opensource Developer website <http://trac.osgeo.org/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.

#100: FGDC metadata validation causing StackOverflowError
-----------------------------+----------------------------------------------
  Reporter: mattblanchette | Owner: geonetwork-devel@lists.sourceforge.net
      Type: defect | Status: closed
  Priority: critical | Milestone: v2.4.0 RC2
Component: General | Version: v2.2.0 Final
Resolution: fixed | Keywords: FGDC, schema, StackOverflowError
-----------------------------+----------------------------------------------
Changes (by ticheler):

* cc: sspigot (removed)
* cc: sppigot (added)

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/100#comment:2&gt;
GeoNetwork opensource Developer website <http://trac.osgeo.org/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.