[ http://nagoya.apache.org/jira/browse/XERCESC-1115?page=history ]
Alberto Massari updated XERCESC-1115: ------------------------------------- Priority: Major > Base64Binary validation failed when length is zero > -------------------------------------------------- > > Key: XERCESC-1115 > URL: http://nagoya.apache.org/jira/browse/XERCESC-1115 > Project: Xerces-C++ > Type: Bug > Components: Validating Parser (Schema) (Xerces 1.5 or up only) > Versions: 2.3.0 > Environment: Operating System: Other > Platform: Other > Reporter: Loic BAUDRY > Assignee: Xerces-C Developers Mailing List > > If a base64binary element have no data, the validation failed with the following > message : > "Datatype error: Type:InvalidDatatypeValueException, Message:Value '' is not > encoded in Base64 ." > To reproduce, create an XD with > <xs:element name="DONNEES" type="xs:base64Binary"/> > and an XML with > <DONNEES/> > There is also a different behaviour in the Java implementation. One may be > right, but which one ? > In \src\xercesc\validators\datatype\Base64BinaryDatatypeValidator.cpp > we have : > if (getLength(content) <= 0) > In the JAVA Version of xerces, it seems the test is different : > if (getLength( content) < 0) { > Which version is right ? It would be fine if the two implementation have the > same behaviour. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]