#100 closed defect (fixed)
FGDC metadata validation causing StackOverflowError
Reported by: | mattblanchette | Owned by: | |
---|---|---|---|
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 , 16 years ago
Cc: | added |
---|---|
Milestone: | → v2.4.0 RC2 |
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 16 years ago
Cc: | added; removed |
---|
Note:
See TracTickets
for help on using tickets.