• Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Ticket
  • Next Ticket →

Ticket #22 (closed defect: fixed)

Opened 14 months ago

Last modified 14 months ago

LSID validation issue

Reported by: andrew Owned by: andrew
Priority: major Milestone: Interim Schema Release (non-breaking September 2007)
Component: Schema Version:
Keywords: Cc:

Description

The - (dash) character is handled different by different regex parsers. To be most compatible with a range of parsers always escape the character.

Details from Jave 1.5 parser: InvalidRegex?: Pattern value '(urn:lsid:([\w-\.]+\.[\w-\.]+)+:Plate:\S+)|(Plate:\S+)' is not a valid regular expression. The reported error was: -' is an invalid character range. Write '\-'.'.

The problem is that [\w-\.] is being interpreted as a character range, due to the dash. The fix is to write [\w\-\.] instead whenever that pattern appears.

Affected XSD files (ome.xsd, SPW.xsd and AnalysisModule?.xsd)

Change History

Changed 14 months ago by andrew

  • status changed from new to assigned

Update working copies of ome.xsd, SPW.xsd and AnalysisModule?.xsd

Changed 14 months ago by andrew

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/