You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2004/01/16 17:42:46 UTC

DO NOT REPLY [Bug 26094] - Base64Binary validation failed when length is zero

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26094>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26094

Base64Binary validation failed when length is zero





------- Additional Comments From mpawlow@ca.ibm.com  2004-01-16 16:40 -------
It appears that the JAVA version of Xerces exhibits the correct behaviour in
this situation

http://www.w3.org/TR/xmlschema-2/#base64Binary
The ·value space· of base64Binary is the set of finite-length sequences of
binary octets.
Although not explicitly defined in the spec, "finite-length" implicitly appears
to include the value 0 

This bug also appears to be present with respect to the hexBinary datatype

void HexBinaryDatatypeValidator::checkValueSpace(const XMLCh* const content)
{
    if (getLength(content) <= 0)
    {
        ThrowXML1(InvalidDatatypeValueException
                , XMLExcepts::VALUE_Not_HexBin
                , content);
    }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org