You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Paco Avila (JIRA)" <ji...@apache.org> on 2006/07/26 08:48:14 UTC

[jira] Created: (JCR-497) HierarchyManager can't build path

HierarchyManager can't build path
---------------------------------

                 Key: JCR-497
                 URL: http://issues.apache.org/jira/browse/JCR-497
             Project: Jackrabbit
          Issue Type: Bug
          Components: core
    Affects Versions: 1.1
         Environment: Ubuntu Linux Dapper
            Reporter: Paco Avila


I'm programming my own AccessManager and I have two issues. The first is
with actual jacrabbit version 1.0.1. In attached file Dummy.java line 70
there is a comment about this. In the development version this bug is
gone.

But a have another bug in the development version of Jackrabbit. This is
a weir error because I can't reproduce it always. But with this code it
raises very often:

for (int i=0; i<100; i++) {
   Node n1 = myRoot.addNode("pepe "+i, "nt:hierarchyNode");
}

The exception is thrown in line 93 of MyAccessManager.java. There is a
comment on it. The exception says me that HierarchyManager can't build a
path.


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

        

[jira] Commented: (JCR-497) HierarchyManager can't build path

Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-497?page=comments#action_12424567 ] 
            
Paco Avila commented on JCR-497:
--------------------------------

What can I do with MyAccessManager? I've been looking for times a sample AccessManager implementation but can't find anything. I'm trying to program a functional AccessManager and put the source code in the JAckrabbit Wiki so other people can use it. Can you help me?

> HierarchyManager can't build path
> ---------------------------------
>
>                 Key: JCR-497
>                 URL: http://issues.apache.org/jira/browse/JCR-497
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: Ubuntu Linux Dapper
>            Reporter: Paco Avila
>         Attachments: Dummy.java, MyAccessManager.java, repository2.xml
>
>
> I'm programming my own AccessManager and I have two issues. The first is
> with actual jacrabbit version 1.0.1. In attached file Dummy.java line 70
> there is a comment about this. In the development version this bug is
> gone.
> But a have another bug in the development version of Jackrabbit. This is
> a weir error because I can't reproduce it always. But with this code it
> raises very often:
> for (int i=0; i<100; i++) {
>    Node n1 = myRoot.addNode("pepe "+i, "nt:hierarchyNode");
> }
> The exception is thrown in line 93 of MyAccessManager.java. There is a
> comment on it. The exception says me that HierarchyManager can't build a
> path.

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

        

[jira] Commented: (JCR-497) HierarchyManager can't build path

Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-497?page=comments#action_12424557 ] 
            
Paco Avila commented on JCR-497:
--------------------------------

So, why it works some times? And how can I program my own AccessMAnager?

> HierarchyManager can't build path
> ---------------------------------
>
>                 Key: JCR-497
>                 URL: http://issues.apache.org/jira/browse/JCR-497
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: Ubuntu Linux Dapper
>            Reporter: Paco Avila
>         Attachments: Dummy.java, MyAccessManager.java, repository2.xml
>
>
> I'm programming my own AccessManager and I have two issues. The first is
> with actual jacrabbit version 1.0.1. In attached file Dummy.java line 70
> there is a comment about this. In the development version this bug is
> gone.
> But a have another bug in the development version of Jackrabbit. This is
> a weir error because I can't reproduce it always. But with this code it
> raises very often:
> for (int i=0; i<100; i++) {
>    Node n1 = myRoot.addNode("pepe "+i, "nt:hierarchyNode");
> }
> The exception is thrown in line 93 of MyAccessManager.java. There is a
> comment on it. The exception says me that HierarchyManager can't build a
> path.

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

        

[jira] Closed: (JCR-497) HierarchyManager can't build path

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-497?page=all ]

Stefan Guggisberg closed JCR-497.
---------------------------------


> HierarchyManager can't build path
> ---------------------------------
>
>                 Key: JCR-497
>                 URL: http://issues.apache.org/jira/browse/JCR-497
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: Ubuntu Linux Dapper
>            Reporter: Paco Avila
>         Attachments: Dummy.java, MyAccessManager.java, repository2.xml
>
>
> I'm programming my own AccessManager and I have two issues. The first is
> with actual jacrabbit version 1.0.1. In attached file Dummy.java line 70
> there is a comment about this. In the development version this bug is
> gone.
> But a have another bug in the development version of Jackrabbit. This is
> a weir error because I can't reproduce it always. But with this code it
> raises very often:
> for (int i=0; i<100; i++) {
>    Node n1 = myRoot.addNode("pepe "+i, "nt:hierarchyNode");
> }
> The exception is thrown in line 93 of MyAccessManager.java. There is a
> comment on it. The exception says me that HierarchyManager can't build a
> path.

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

        

[jira] Updated: (JCR-497) HierarchyManager can't build path

Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-497?page=all ]

Paco Avila updated JCR-497:
---------------------------

    Attachment: MyAccessManager.java

Test implementation of AccessManager.

> HierarchyManager can't build path
> ---------------------------------
>
>                 Key: JCR-497
>                 URL: http://issues.apache.org/jira/browse/JCR-497
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: Ubuntu Linux Dapper
>            Reporter: Paco Avila
>         Attachments: Dummy.java, MyAccessManager.java, repository2.xml
>
>
> I'm programming my own AccessManager and I have two issues. The first is
> with actual jacrabbit version 1.0.1. In attached file Dummy.java line 70
> there is a comment about this. In the development version this bug is
> gone.
> But a have another bug in the development version of Jackrabbit. This is
> a weir error because I can't reproduce it always. But with this code it
> raises very often:
> for (int i=0; i<100; i++) {
>    Node n1 = myRoot.addNode("pepe "+i, "nt:hierarchyNode");
> }
> The exception is thrown in line 93 of MyAccessManager.java. There is a
> comment on it. The exception says me that HierarchyManager can't build a
> path.

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

        

[jira] Updated: (JCR-497) HierarchyManager can't build path

Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-497?page=all ]

Paco Avila updated JCR-497:
---------------------------

    Attachment: repository2.xml

Repository configuration.

> HierarchyManager can't build path
> ---------------------------------
>
>                 Key: JCR-497
>                 URL: http://issues.apache.org/jira/browse/JCR-497
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: Ubuntu Linux Dapper
>            Reporter: Paco Avila
>         Attachments: Dummy.java, MyAccessManager.java, repository2.xml
>
>
> I'm programming my own AccessManager and I have two issues. The first is
> with actual jacrabbit version 1.0.1. In attached file Dummy.java line 70
> there is a comment about this. In the development version this bug is
> gone.
> But a have another bug in the development version of Jackrabbit. This is
> a weir error because I can't reproduce it always. But with this code it
> raises very often:
> for (int i=0; i<100; i++) {
>    Node n1 = myRoot.addNode("pepe "+i, "nt:hierarchyNode");
> }
> The exception is thrown in line 93 of MyAccessManager.java. There is a
> comment on it. The exception says me that HierarchyManager can't build a
> path.

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

        

[jira] Resolved: (JCR-497) HierarchyManager can't build path

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-497?page=all ]

Stefan Guggisberg resolved JCR-497.
-----------------------------------

    Resolution: Invalid

the exception is caused by a faulty AccessManager implementation.
the following line (MyAccessManager.java, line 109):

    Node node = ((SessionImpl) systemSession).getNodeById(nodeId);

throws the exception because 'systemSession' can't see 
new transient nodes of another session.


> HierarchyManager can't build path
> ---------------------------------
>
>                 Key: JCR-497
>                 URL: http://issues.apache.org/jira/browse/JCR-497
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: Ubuntu Linux Dapper
>            Reporter: Paco Avila
>         Attachments: Dummy.java, MyAccessManager.java, repository2.xml
>
>
> I'm programming my own AccessManager and I have two issues. The first is
> with actual jacrabbit version 1.0.1. In attached file Dummy.java line 70
> there is a comment about this. In the development version this bug is
> gone.
> But a have another bug in the development version of Jackrabbit. This is
> a weir error because I can't reproduce it always. But with this code it
> raises very often:
> for (int i=0; i<100; i++) {
>    Node n1 = myRoot.addNode("pepe "+i, "nt:hierarchyNode");
> }
> The exception is thrown in line 93 of MyAccessManager.java. There is a
> comment on it. The exception says me that HierarchyManager can't build a
> path.

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

        

[jira] Commented: (JCR-497) HierarchyManager can't build path

Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/JCR-497?page=comments#action_12424559 ] 
            
Stefan Guggisberg commented on JCR-497:
---------------------------------------

it's perfectly reproducable with your AccessManager implementation, i.e. it always fails.

btw: the exception is not thrown during the loop but on the subsequent save() call.

> HierarchyManager can't build path
> ---------------------------------
>
>                 Key: JCR-497
>                 URL: http://issues.apache.org/jira/browse/JCR-497
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: Ubuntu Linux Dapper
>            Reporter: Paco Avila
>         Attachments: Dummy.java, MyAccessManager.java, repository2.xml
>
>
> I'm programming my own AccessManager and I have two issues. The first is
> with actual jacrabbit version 1.0.1. In attached file Dummy.java line 70
> there is a comment about this. In the development version this bug is
> gone.
> But a have another bug in the development version of Jackrabbit. This is
> a weir error because I can't reproduce it always. But with this code it
> raises very often:
> for (int i=0; i<100; i++) {
>    Node n1 = myRoot.addNode("pepe "+i, "nt:hierarchyNode");
> }
> The exception is thrown in line 93 of MyAccessManager.java. There is a
> comment on it. The exception says me that HierarchyManager can't build a
> path.

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

        

[jira] Updated: (JCR-497) HierarchyManager can't build path

Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-497?page=all ]

Paco Avila updated JCR-497:
---------------------------

    Attachment: Dummy.java

Test case for the bug.

> HierarchyManager can't build path
> ---------------------------------
>
>                 Key: JCR-497
>                 URL: http://issues.apache.org/jira/browse/JCR-497
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: Ubuntu Linux Dapper
>            Reporter: Paco Avila
>         Attachments: Dummy.java, MyAccessManager.java, repository2.xml
>
>
> I'm programming my own AccessManager and I have two issues. The first is
> with actual jacrabbit version 1.0.1. In attached file Dummy.java line 70
> there is a comment about this. In the development version this bug is
> gone.
> But a have another bug in the development version of Jackrabbit. This is
> a weir error because I can't reproduce it always. But with this code it
> raises very often:
> for (int i=0; i<100; i++) {
>    Node n1 = myRoot.addNode("pepe "+i, "nt:hierarchyNode");
> }
> The exception is thrown in line 93 of MyAccessManager.java. There is a
> comment on it. The exception says me that HierarchyManager can't build a
> path.

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