Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#100 closed defect (fixed)

FGDC metadata validation causing StackOverflowError

Reported by: mattblanchette Owned by: geonetwork-devel@…
Priority: critical Milestone: v2.4.0 RC2
Component: General Version: v2.2.0 Final
Keywords: FGDC, schema, StackOverflowError Cc: sppigot

Description

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:
<xsd:pattern value="\s*\S(.|\n|\r)*"/>

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

Change History (2)

comment:1 by ticheler, 16 years ago

Cc: sspigot added
Milestone: v2.4.0 RC2
Resolution: fixed
Status: newclosed

comment:2 by ticheler, 16 years ago

Cc: sppigot added; sspigot removed
Note: See TracTickets for help on using tickets.