You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2011/04/12 02:37:05 UTC

[jira] [Created] (JCR-2941) Serialization of privileges should use xml namespaces

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: Improvement
          Components: security
            Reporter: Tobias Bocanegra
            Priority: Minor


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>



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

[jira] [Updated] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-2941:
-------------------------------

    Fix Version/s:     (was: 2.2.7)

> 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
>
>         Attachments: custompriv-r1099709.patch
>
>
> 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

[jira] [Updated] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela updated JCR-2941:
------------------------

    Affects Version/s: 2.3.0
        Fix Version/s: 2.3.0
             Assignee: angela
           Issue Type: Wish  (was: Improvement)

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

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

[jira] [Updated] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ 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

[jira] [Updated] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.3.0)
           Status: Resolved  (was: Patch Available)

Agreed with Angela to keep it consistent with XML node type serialization (that we don't use anymore :-).

> 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
>         Attachments: custompriv-r1099709.patch
>
>
> 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

        

[jira] [Resolved] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela resolved JCR-2941.
-------------------------

    Resolution: Won't Fix

the current format is consistent with the xml-serialization we use(d) to have for node types. in addition you proposal doesn't address the names of the aggregated privileges, where the contains element again defines a name attribute.

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

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

[jira] [Updated] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: custompriv-r1099709.patch

> 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: Tobias Bocanegra
>            Priority: Minor
>             Fix For: 2.2.6, 2.3.0
>
>         Attachments: custompriv-r1099709.patch
>
>
> 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

[jira] [Reopened] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra reopened JCR-2941:
-----------------------------------

      Assignee: Tobias Bocanegra  (was: angela)

i really think we should not abuse explicit NS declarations in the document that are not used by the elements. either use proper XML names or use the expanded format.

i will provide a patch.

> 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: Tobias Bocanegra
>            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

[jira] [Updated] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Fix Version/s: 2.2.6
           Status: Patch Available  (was: Reopened)

> 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: Tobias Bocanegra
>            Priority: Minor
>             Fix For: 2.2.6, 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

[jira] [Assigned] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "Tobias Bocanegra (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tobias Bocanegra reassigned JCR-2941:
-------------------------------------

    Assignee: angela  (was: Tobias Bocanegra)

please review...thanks.

> 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.2.6, 2.3.0
>
>         Attachments: custompriv-r1099709.patch
>
>
> 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

[jira] [Updated] (JCR-2941) Serialization of privileges should use xml namespaces

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela updated JCR-2941:
------------------------

    Issue Type: Sub-task  (was: Wish)
        Parent: JCR-2887

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

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