You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2007/09/28 13:18:50 UTC

[jira] Created: (JCR-1147) spi2jcr: RepositoryServiceImpl.getRootId returns bad NodeId

spi2jcr: RepositoryServiceImpl.getRootId returns bad NodeId 
------------------------------------------------------------

                 Key: JCR-1147
                 URL: https://issues.apache.org/jira/browse/JCR-1147
             Project: Jackrabbit
          Issue Type: Bug
          Components: SPI
            Reporter: Michael Dürig
            Priority: Minor


I think org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl.getRootId() should not return getIdFactory().createNodeId((String) null, Path.ROOT). Rather should it do a round trip to the wrapped repository and return a UUID based NodeId if the root node of the wrapped repository is mix:referenceable.

The javadoc reads: "If the root node can be identified with a unique ID the returned NodeId simply has a uniqueID part and the path part is null. If the root node cannot be identified with a unique ID the uniqueID part is null and the path part will be set to "/"."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (JCR-1147) spi2jcr: RepositoryServiceImpl.getRootId returns bad NodeId

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

Marcel Reutegger reassigned JCR-1147:
-------------------------------------

    Assignee: Marcel Reutegger

> spi2jcr: RepositoryServiceImpl.getRootId returns bad NodeId 
> ------------------------------------------------------------
>
>                 Key: JCR-1147
>                 URL: https://issues.apache.org/jira/browse/JCR-1147
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: SPI
>            Reporter: Michael Dürig
>            Assignee: Marcel Reutegger
>            Priority: Minor
>
> I think org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl.getRootId() should not return getIdFactory().createNodeId((String) null, Path.ROOT). Rather should it do a round trip to the wrapped repository and return a UUID based NodeId if the root node of the wrapped repository is mix:referenceable.
> The javadoc reads: "If the root node can be identified with a unique ID the returned NodeId simply has a uniqueID part and the path part is null. If the root node cannot be identified with a unique ID the uniqueID part is null and the path part will be set to "/"."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JCR-1147) spi2jcr: RepositoryServiceImpl.getRootId returns bad NodeId

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

Marcel Reutegger resolved JCR-1147.
-----------------------------------

    Resolution: Fixed

Fixed in revision: 580406

Thank you for reporting this issue.

> spi2jcr: RepositoryServiceImpl.getRootId returns bad NodeId 
> ------------------------------------------------------------
>
>                 Key: JCR-1147
>                 URL: https://issues.apache.org/jira/browse/JCR-1147
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: SPI
>            Reporter: Michael Dürig
>            Assignee: Marcel Reutegger
>            Priority: Minor
>
> I think org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl.getRootId() should not return getIdFactory().createNodeId((String) null, Path.ROOT). Rather should it do a round trip to the wrapped repository and return a UUID based NodeId if the root node of the wrapped repository is mix:referenceable.
> The javadoc reads: "If the root node can be identified with a unique ID the returned NodeId simply has a uniqueID part and the path part is null. If the root node cannot be identified with a unique ID the uniqueID part is null and the path part will be set to "/"."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1147) spi2jcr: RepositoryServiceImpl.getRootId returns bad NodeId

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

Jukka Zitting updated JCR-1147:
-------------------------------

    Fix Version/s: 1.4

> spi2jcr: RepositoryServiceImpl.getRootId returns bad NodeId 
> ------------------------------------------------------------
>
>                 Key: JCR-1147
>                 URL: https://issues.apache.org/jira/browse/JCR-1147
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: SPI
>            Reporter: Michael Dürig
>            Assignee: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.4
>
>
> I think org.apache.jackrabbit.spi2jcr.RepositoryServiceImpl.getRootId() should not return getIdFactory().createNodeId((String) null, Path.ROOT). Rather should it do a round trip to the wrapped repository and return a UUID based NodeId if the root node of the wrapped repository is mix:referenceable.
> The javadoc reads: "If the root node can be identified with a unique ID the returned NodeId simply has a uniqueID part and the path part is null. If the root node cannot be identified with a unique ID the uniqueID part is null and the path part will be set to "/"."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.