You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Paul Mietz Egli (JIRA)" <ji...@apache.org> on 2009/11/18 00:25:52 UTC

[jira] Created: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
----------------------------------------------------------------------------------------------------

                 Key: CAMEL-2188
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-jcr
    Affects Versions: 1.6.0
         Environment: java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

            Reporter: Paul Mietz Egli
         Attachments: node-creation.diff

To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Updated: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

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

Claus Ibsen updated CAMEL-2188:
-------------------------------

    Fix Version/s: 2.2.0

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.2.0
>
>         Attachments: node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Commented: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

Posted by "Paul Mietz Egli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56040#action_56040 ] 

Paul Mietz Egli commented on CAMEL-2188:
----------------------------------------

I forgot to mention that the patch was generated against trunk rev 883433 (2009-11-11 17:21:11).

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.2.0
>
>         Attachments: CAMEL-2188.diff, node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Commented: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56515#action_56515 ] 

Claus Ibsen commented on CAMEL-2188:
------------------------------------

Hmm was this committed before 2.1 was released? And what wiki do you need to update?

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.2.0
>
>         Attachments: CAMEL-2188.diff, node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Resolved: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

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

Claus Ibsen resolved CAMEL-2188.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.2.0)
                   2.1.0

Committed in the 2.1 release.

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.1.0
>
>         Attachments: CAMEL-2188.diff, node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Commented: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55614#action_55614 ] 

Claus Ibsen commented on CAMEL-2188:
------------------------------------

Paul can you work on the patches and provide a complete patch with you suggestions. Then we can get it in Camel 2.2

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.2.0
>
>         Attachments: node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Updated: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

Posted by "Paul Mietz Egli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Mietz Egli updated CAMEL-2188:
-----------------------------------

    Attachment: node-creation.diff

Patch to fix problem with intermediate node creation in camel-jcr.  Also adds a try/catch around the code that sets node properties in case the TypeConverter can't handle one or more exchange property types.

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>         Attachments: node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Updated: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

Posted by "Paul Mietz Egli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Mietz Egli updated CAMEL-2188:
-----------------------------------

    Attachment: CAMEL-2188.diff

Patch file that fixes CAMEL-2188 and CAMEL-2187.  Includes unit tests for proper authentication against the repository and for node path creation when value of the exchange header JcrConstants.JCR_NODE_NAME contains one or more path separator characters.  Apply from SVNROOT/components/camel-jcr.

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.2.0
>
>         Attachments: CAMEL-2188.diff, node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Assigned: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

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

Hadrian Zbarcea reassigned CAMEL-2188:
--------------------------------------

    Assignee: Hadrian Zbarcea

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>            Assignee: Hadrian Zbarcea
>         Attachments: node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Commented: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56485#action_56485 ] 

Willem Jiang commented on CAMEL-2188:
-------------------------------------

Hi hadrain

Can we resolve this issue now?

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.2.0
>
>         Attachments: CAMEL-2188.diff, node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Commented: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

Posted by "Paul Mietz Egli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55569#action_55569 ] 

Paul Mietz Egli commented on CAMEL-2188:
----------------------------------------

We probably want a Text.escapeIllegalJcrChars() call in the node creation loop as well...

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>         Attachments: node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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


[jira] Commented: (CAMEL-2188) JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56041#action_56041 ] 

Hadrian Zbarcea commented on CAMEL-2188:
----------------------------------------

Patch applied with many thanks!  I need to update the wiki as well.

Excellent contribution, keep them coming.

> JcrProducer node creation throws javax.jcr.PathNotFoundException when using exchange ID as node name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2188
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2188
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jcr
>    Affects Versions: 1.6.0
>         Environment: java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)
>            Reporter: Paul Mietz Egli
>            Assignee: Hadrian Zbarcea
>             Fix For: 2.2.0
>
>         Attachments: CAMEL-2188.diff, node-creation.diff
>
>
> To reproduce, use the camel-jcr component without specifying a node name in the message properties.  JcrProducer will attempt to use the exchange ID as the node name, but in ServiceMix 4, this ID contains path separator characters, which results in a PathNotFound exception when the producer attempts to create the node.  IMHO, the producer should attempt to create parent nodes as needed when the value of either the exchange ID or the property named JcrConstants.JCR_NODE_NAME contain path separators.

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