You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by "Claude Zervas (JIRA)" <xm...@ws.apache.org> on 2005/08/30 04:53:06 UTC

[jira] Created: (XMLRPC-69) XmlWriter.isValidXMLChar(char) incorrectly determines ASCII space (0x20) character to be invalid XML

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


[jira] Geschlossen: (XMLRPC-69) XmlWriter.isValidXMLChar(char) incorrectly determines ASCII space (0x20) character to be invalid XML

Posted by "Jochen Wiedmann (JIRA)" <xm...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLRPC-69?page=all ]
     
Jochen Wiedmann closed XMLRPC-69:
---------------------------------

    Fix Version: 2.1
     Resolution: Fixed
      Assign To: Jochen Wiedmann

Patch applied to 2.0 branch and HEAD.


> 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
>     Assignee: Jochen Wiedmann
>      Fix For: 2.1

>
> 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


[jira] Commented: (XMLRPC-69) XmlWriter.isValidXMLChar(char) incorrectly determines ASCII space (0x20) character to be invalid XML

Posted by "Claude Zervas (JIRA)" <xm...@ws.apache.org>.
    [ 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