jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-690) Nodes' and properties' names with invalid XML characters export as invalid XML
Date Wed, 27 Dec 2006 09:20:22 GMT
    [ http://issues.apache.org/jira/browse/JCR-690?page=comments#action_12460966 ] 
            
Jukka Zitting commented on JCR-690:
-----------------------------------

The JSR 283 early draft only allows XML charactes in JCR names to solve this issue.

I think we should adopt the same policy already now, since JSR 170 allows implementations
to place custom restrictions on repository content. We should essentially add guards in the
name parsing method to prevent invalid XML characters from being entered in JCR names.


> Nodes' and properties' names with invalid XML characters export as invalid XML
> ------------------------------------------------------------------------------
>
>                 Key: JCR-690
>                 URL: http://issues.apache.org/jira/browse/JCR-690
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: xml
>    Affects Versions: 1.1, 1.1.1
>            Reporter: Jan Kuzniak
>
> Session.exportSystemView method does check whether character should be escaped using
_X0000_ pattern or not. It just puts it into XML without any validation. It causes e.g. XML
attributes to contain entities like &#0;

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

        

Mime
View raw message