SynBioDex / libSBOLj

Java Library for Synthetic Biology Open Language (SBOL)
Apache License 2.0
37 stars 24 forks source link

displayId rejection should say which ID is the problem #595

Open jakebeal opened 5 years ago

jakebeal commented 5 years ago

When you've got a problem with a displayId in a document, SynBioHub can't tell you which id the problem actually comes from:

Error: org.sbolstandard.core2.SBOLValidationException: sbol-10204: Strong Validation Error:
The displayId property of an Identified object is OPTIONAL and MAY contain a String that MUST be composed of only alphanumeric or underscore characters and MUST NOT begin with a digit.
Reference: SBOL Version 2.3.0 Section 7.4 on page 17

This is a problem with the underlying libSBOLj library, and is affecting uploads to SynBioHub.

cjmyers commented 5 years ago

Is this a symptom of the error with URIs that end with slash?

jakebeal commented 5 years ago

Yes, this can be triggered by that case, as well as any other case with a URI that fails validation.