jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JCR-2941) Serialization of privileges should use xml namespaces
Date Tue, 03 May 2011 21:02:03 GMT

     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tobias Bocanegra updated JCR-2941:
----------------------------------

    Description: 
the current serialization of privileges does not make use of the namespace capabilities of
an xml document. for example

<?xml version="1.0" encoding="UTF-8"?>
<privileges xmlns:foo="http://www.foo.com/1.0">
    <privilege name="foo:testRead"/>
</privileges>

the namespace needs to be explicitly defined in the document node, although not used in any
of the elements. i think a better format would be:

<?xml version="1.0" encoding="UTF-8"?>
<privileges xmlns:foo="http://www.foo.com/1.0">
    <foo:testRead />
</privileges>



  was:
the current serialization of privileges does not make use of the namespace capabilities of
an xml document. for example

<?xml version="1.0" encoding="UTF-8"?>
<privileges xmlns:foo="http://www.foo.com/1.0">
    <privilege name="foo:testRead"/>
</privileges>

the namespace needs to be explicitly defines in the document node, although not used in any
of the elements. i think a better format would be:

<?xml version="1.0" encoding="UTF-8"?>
<privileges xmlns:foo="http://www.foo.com/1.0">
    <foo:testRead />
</privileges>




> Serialization of privileges should use xml namespaces
> -----------------------------------------------------
>
>                 Key: JCR-2941
>                 URL: https://issues.apache.org/jira/browse/JCR-2941
>             Project: Jackrabbit Content Repository
>          Issue Type: Sub-task
>          Components: security
>    Affects Versions: 2.3.0
>            Reporter: Tobias Bocanegra
>            Assignee: angela
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> the current serialization of privileges does not make use of the namespace capabilities
of an xml document. for example
> <?xml version="1.0" encoding="UTF-8"?>
> <privileges xmlns:foo="http://www.foo.com/1.0">
>     <privilege name="foo:testRead"/>
> </privileges>
> the namespace needs to be explicitly defined in the document node, although not used
in any of the elements. i think a better format would be:
> <?xml version="1.0" encoding="UTF-8"?>
> <privileges xmlns:foo="http://www.foo.com/1.0">
>     <foo:testRead />
> </privileges>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message