Hello,

 

I am trying to ingest an object that has a datastream that uses a filename, 2005_002_2.jpg, as the datastream ID: 

...

<foxml:datastream CONTROL_GROUP="M" ID="2005_002_2.jpg" STATE="A" VERSIONABLE="1">

            <foxml:datastreamVersion ID = "2005_002_2.jpg.0" ALT_IDS="C:\download\anthropology\images\2005_002_2.jpg" MIMETYPE="image/jpeg" LABEL="2005_002_2.jpg">

        <foxml:contentLocation REF="uploaded://14" TYPE="URL"/>

            </foxml:datastreamVersion>

</foxml:datastream>

...

 

The ingest gives the error that 2005_002_2.jpg is not a valid value for NCName.  I can add a datastream using an ID of 2005_002_2.jpg successfully using the Fedora Admin client, but if I export this object and then try to import it using a different PID, I get the same error that 2005_002_2.jpg is not a valid value.  When I change the ID to start with an alpha character, all works okay.  Error messages from nohup.out and the Fedora log file follow. 

 

Is it required that datastream ID start with an alpha character?   

 

Thanks for the help,

 

Diane White

ASU Hayden Library

480-965-8847

Diane.White@asu.edu

 

Message in nohup.out:

 

ValidationErrorHandler says SAX ERROR found. 

Re-throwing SAXException.org.xml.sax.SAXParseException:

cvc-datatype-valid.1.2.1: '2005_002_2.jpg' is not a valid value for 'NCName'.

 

 

Message in Fedora log file:

 

 <warning time="1154043881970" thread="12">Error carried up to API-M level:

fedora.server.errors.ObjectValidityException: DOValidatorXMLSchema returned validation exception.

The underlying exception was a org.xml.sax.SAXException.

The message was &quot;URI=null Line=32: cvc-datatype-valid.1.2.1: '2005_002_2.jpg' is not a valid value for

'NCName'.&quot;

        at fedora.server.validation.DOValidatorXMLSchema.validate(DOValidatorXMLSchema.java:109)

        at fedora.server.validation.DOValidatorXMLSchema.validate(DOValidatorXMLSchema.java:55)

        at fedora.server.validation.DOValidatorImpl.validateXMLSchema(DOValidatorImpl.java:236)

        at fedora.server.validation.DOValidatorImpl.validate(DOValidatorImpl.java:210)

        at fedora.server.validation.DOValidatorModule.validate(DOValidatorModule.java:160)

        at fedora.server.storage.DefaultDOManager.getIngestWriter(DefaultDOManager.java:553)

        at fedora.server.management.DefaultManagement.ingestObject(DefaultManagement.java:147)

        at fedora.server.management.FedoraAPIMBindingSOAPHTTPImpl.ingest(FedoraAPIMBindingSOAPHTTPImpl.java:116)

Caused by: org.xml.sax.SAXException: URI=null Line=32: cvc-datatype-valid.1.2.1: '2005_002_2.jpg' is not a valid

value for 'NCName'.

        at fedora.server.validation.DOValidatorXMLErrorHandler.error(DOValidatorXMLErrorHandler.java:37)

        at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)

        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

        at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)

        at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)

        at org.apache.xerces.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source)

        at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)

        at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)

        at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)

        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

        at fedora.server.validation.DOValidatorXMLSchema.validate(DOValidatorXMLSchema.java:95)

        at fedora.server.validation.DOValidatorXMLSchema.validate(DOValidatorXMLSchema.java:55)

        at fedora.server.validation.DOValidatorImpl.validateXMLSchema(DOValidatorImpl.java:236)

        at fedora.server.validation.DOValidatorImpl.validate(DOValidatorImpl.java:210)

        at fedora.server.validation.DOValidatorModule.validate(DOValidatorModule.java:160)

        at fedora.server.storage.DefaultDOManager.getIngestWriter(DefaultDOManager.java:553)

        at fedora.server.management.DefaultManagement.ingestObject(DefaultManagement.java:147)

        at fedora.server.management.FedoraAPIMBindingSOAPHTTPImpl.ingest(FedoraAPIMBindingSOAPHTTPImpl.java:116)

</warning>