You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/09/22 10:20:44 UTC

[jira] Created: (JCR-1749) JCRUrlConnection relies on nt:file/nt:resource

JCRUrlConnection relies on nt:file/nt:resource
----------------------------------------------

                 Key: JCR-1749
                 URL: https://issues.apache.org/jira/browse/JCR-1749
             Project: Jackrabbit
          Issue Type: Bug
    Affects Versions: 1.4
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger


The JCRUrlConnection class implementing the jcr: URL handler for the JCR class loader relies on the fact that the intended primary type of the jcr:content child node of an nt:file node is of type nt:resource. When writing files with the Jackrabbit WebDAV server this is not the case as the jcr:content child node is of type nt:unstructured.

As a result the JCRUrlConnection.connect method fails with an ItemNotFoundException in the Util.getProperty(Item)  method because the primary item of the nt:unstructured node type is not defined.

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


[jira] Updated: (JCR-1749) JCRUrlConnection relies on nt:file/nt:resource

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

Felix Meschberger updated JCR-1749:
-----------------------------------

    Fix Version/s:     (was: 1.5)
                   classloader 1.4.1

> JCRUrlConnection relies on nt:file/nt:resource
> ----------------------------------------------
>
>                 Key: JCR-1749
>                 URL: https://issues.apache.org/jira/browse/JCR-1749
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-classloader
>    Affects Versions: 1.4
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: classloader 1.4.1
>
>
> The JCRUrlConnection class implementing the jcr: URL handler for the JCR class loader relies on the fact that the intended primary type of the jcr:content child node of an nt:file node is of type nt:resource. When writing files with the Jackrabbit WebDAV server this is not the case as the jcr:content child node is of type nt:unstructured.
> As a result the JCRUrlConnection.connect method fails with an ItemNotFoundException in the Util.getProperty(Item)  method because the primary item of the nt:unstructured node type is not defined.

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


[jira] Updated: (JCR-1749) JCRUrlConnection relies on nt:file/nt:resource

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

Felix Meschberger updated JCR-1749:
-----------------------------------

    Component/s: jackrabbit-classloader

> JCRUrlConnection relies on nt:file/nt:resource
> ----------------------------------------------
>
>                 Key: JCR-1749
>                 URL: https://issues.apache.org/jira/browse/JCR-1749
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-classloader
>    Affects Versions: 1.4
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>
> The JCRUrlConnection class implementing the jcr: URL handler for the JCR class loader relies on the fact that the intended primary type of the jcr:content child node of an nt:file node is of type nt:resource. When writing files with the Jackrabbit WebDAV server this is not the case as the jcr:content child node is of type nt:unstructured.
> As a result the JCRUrlConnection.connect method fails with an ItemNotFoundException in the Util.getProperty(Item)  method because the primary item of the nt:unstructured node type is not defined.

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


[jira] Resolved: (JCR-1749) JCRUrlConnection relies on nt:file/nt:resource

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

Felix Meschberger resolved JCR-1749.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

Removed the dependency on the concrete types of nodes accessed. Rather check for the actual data present or not. This mostly is of importance in the Util class providing access to the URL's data property. The other location of importance is the JCRURLConnection.connect() method, which loads the content length, content type and last modification time fields from the repository.

Fixed in Rev. 697778.

> JCRUrlConnection relies on nt:file/nt:resource
> ----------------------------------------------
>
>                 Key: JCR-1749
>                 URL: https://issues.apache.org/jira/browse/JCR-1749
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-classloader
>    Affects Versions: 1.4
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 1.5
>
>
> The JCRUrlConnection class implementing the jcr: URL handler for the JCR class loader relies on the fact that the intended primary type of the jcr:content child node of an nt:file node is of type nt:resource. When writing files with the Jackrabbit WebDAV server this is not the case as the jcr:content child node is of type nt:unstructured.
> As a result the JCRUrlConnection.connect method fails with an ItemNotFoundException in the Util.getProperty(Item)  method because the primary item of the nt:unstructured node type is not defined.

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


[jira] Commented: (JCR-1749) JCRUrlConnection relies on nt:file/nt:resource

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633245#action_12633245 ] 

Felix Meschberger commented on JCR-1749:
----------------------------------------

Backported fix from Rev. 697778 in trunk to 1.4 branch Rev. 697809 to prepare for classloader 1.4.1 release

> JCRUrlConnection relies on nt:file/nt:resource
> ----------------------------------------------
>
>                 Key: JCR-1749
>                 URL: https://issues.apache.org/jira/browse/JCR-1749
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-classloader
>    Affects Versions: 1.4
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: classloader 1.4.1
>
>
> The JCRUrlConnection class implementing the jcr: URL handler for the JCR class loader relies on the fact that the intended primary type of the jcr:content child node of an nt:file node is of type nt:resource. When writing files with the Jackrabbit WebDAV server this is not the case as the jcr:content child node is of type nt:unstructured.
> As a result the JCRUrlConnection.connect method fails with an ItemNotFoundException in the Util.getProperty(Item)  method because the primary item of the nt:unstructured node type is not defined.

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