Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2188

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 2.1.0
    • camel-jcr
    • None
    • 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)

    • Patch Available

    Description

      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.

      Attachments

        1. node-creation.diff
          3 kB
          Paul Mietz Egli
        2. CAMEL-2188.diff
          21 kB
          Paul Mietz Egli

        Activity

          People

            hadrian Hadrian Zbarcea
            pegli Paul Mietz Egli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: