You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Christian Stocker (JIRA)" <ji...@apache.org> on 2011/02/10 11:31:58 UTC

[jira] Created: (JCR-2888) Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string

Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string
----------------------------------------------------------------------------------------------------------

                 Key: JCR-2888
                 URL: https://issues.apache.org/jira/browse/JCR-2888
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-webdav
            Reporter: Christian Stocker
         Attachments: patch_commit_ebebb62c3df0.patch

If a node returns null for Node.getNamespaceUri(), but Namespace.EMPTY_NAMESPACE expects an empty string, the comparison fails. But to my knowledge a null and "" namespaceUri should be treated the same.



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

        

[jira] Updated: (JCR-2888) Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string

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

angela updated JCR-2888:
------------------------

    Fix Version/s: 2.3.0

> Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-2888
>                 URL: https://issues.apache.org/jira/browse/JCR-2888
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-webdav
>            Reporter: Christian Stocker
>            Assignee: angela
>             Fix For: 2.1.4, 2.2.5, 2.3.0
>
>         Attachments: patch_commit_ebebb62c3df0.patch
>
>
> If a node returns null for Node.getNamespaceUri(), but Namespace.EMPTY_NAMESPACE expects an empty string, the comparison fails. But to my knowledge a null and "" namespaceUri should be treated the same.

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

        

[jira] Assigned: (JCR-2888) Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string

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

angela reassigned JCR-2888:
---------------------------

    Assignee: angela

> Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-2888
>                 URL: https://issues.apache.org/jira/browse/JCR-2888
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-webdav
>            Reporter: Christian Stocker
>            Assignee: angela
>         Attachments: patch_commit_ebebb62c3df0.patch
>
>
> If a node returns null for Node.getNamespaceUri(), but Namespace.EMPTY_NAMESPACE expects an empty string, the comparison fails. But to my knowledge a null and "" namespaceUri should be treated the same.

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

        

[jira] Updated: (JCR-2888) Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string

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

Jukka Zitting updated JCR-2888:
-------------------------------

    Fix Version/s:     (was: 2.3.0)
                   2.2.5
                   2.1.4

Merged to the 2.2 branch in revision 1071665 and to the 2.1 branch in revision 1071667.

> Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-2888
>                 URL: https://issues.apache.org/jira/browse/JCR-2888
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-webdav
>            Reporter: Christian Stocker
>            Assignee: angela
>             Fix For: 2.1.4, 2.2.5
>
>         Attachments: patch_commit_ebebb62c3df0.patch
>
>
> If a node returns null for Node.getNamespaceUri(), but Namespace.EMPTY_NAMESPACE expects an empty string, the comparison fails. But to my knowledge a null and "" namespaceUri should be treated the same.

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

        

[jira] Resolved: (JCR-2888) Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string

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

angela resolved JCR-2888.
-------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.0

> Namespace comparison in Namespace.java doesn't work, if a node return null, but it expects an empty string
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: JCR-2888
>                 URL: https://issues.apache.org/jira/browse/JCR-2888
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-webdav
>            Reporter: Christian Stocker
>            Assignee: angela
>             Fix For: 2.3.0
>
>         Attachments: patch_commit_ebebb62c3df0.patch
>
>
> If a node returns null for Node.getNamespaceUri(), but Namespace.EMPTY_NAMESPACE expects an empty string, the comparison fails. But to my knowledge a null and "" namespaceUri should be treated the same.

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