[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-dev
Subject:    [jira] Commented: (XMLRPC-69) XmlWriter.isValidXMLChar(char) incorrectly determines ASCII space (0x2
From:       "Claude Zervas (JIRA)" <xmlrpc-dev () ws ! apache ! org>
Date:       2005-08-30 3:02:05
Message-ID: 1331995004.1125370925203.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

    [ http://issues.apache.org/jira/browse/XMLRPC-69?page=comments#action_12320519 ] 

Claude Zervas commented on XMLRPC-69:
-------------------------------------

I suppose this bug could be moderated down from major, but it does have some serious \
consequences in some applications that have to deal with the unfortunate multitude of \
clients that don't correctly parse character entities in strings returned from an \
XMLRPC method call (like Ecto, the blogging client tool, for example).

> XmlWriter.isValidXMLChar(char) incorrectly determines ASCII space (0x20) character \
>                 to be invalid XML
> ----------------------------------------------------------------------------------------------------
>  
> Key: XMLRPC-69
> URL: http://issues.apache.org/jira/browse/XMLRPC-69
> Project: XML-RPC
> Type: Bug
> Components: Releases
> Versions: 2.0
> Environment: All
> Reporter: Claude Zervas

> 
> The ASCII space character (0x20) should be valid XML (as I understand it). The \
> isValidXMLChar() method returns false and hence a space character  gets encoded as \
> a character entity (&#32;). This bug was checked in with version 1.14 of \
> XmlWriter.java and exists in the current release version. A possible patch would be \
> as follows: @@ -463,7 +463,7 @@
> return true;
> default:
> -            return ( (0x20 < c && c <= 0xd7ff) ||
> +            return ( (0x20 <= c && c <= 0xd7ff) ||
> (0xe000 < c && c <= 0xfffd) ||
> (0x10000 < c && c <= 0x10ffff) );
> }
> thanks,
> - Claude

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic