[
https://issues.apache.org/jira/browse/CAMEL-7406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13987280#comment-13987280
]
ASF GitHub Bot commented on CAMEL-7406:
---------------------------------------
GitHub user gzurowski opened a pull request:
https://github.com/apache/camel/pull/142
CAMEL-7406: Avoid NPE when password empty in JCR endpoint URI
Signed-off-by: Gregor Zurowski <[email protected]>
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gzurowski/camel CAMEL-7406
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/142.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #142
----
commit 1073c9737e8f2f003966170aca0bdd6751e4396a
Author: Gregor Zurowski <[email protected]>
Date: 2014-05-02T02:39:09Z
CAMEL-7406: Avoid NPE when password empty in JCR endpoint URI
Signed-off-by: Gregor Zurowski <[email protected]>
----
> Empty password in JCR Endpoint URI causes NPE
> ---------------------------------------------
>
> Key: CAMEL-7406
> URL: https://issues.apache.org/jira/browse/CAMEL-7406
> Project: Camel
> Issue Type: Bug
> Components: camel-jcr
> Reporter: Gregor Zurowski
> Assignee: Gregor Zurowski
> Priority: Minor
> Fix For: 2.14.0
>
>
> Leaving the password empty in a Camel JCR Endpoint URI (e.g.
> "jcr://gregor:@repository/home") leads to NullPointerExceptions. Empty
> passwords are valid when used with Jackrabbit's SimpleSecurityManager and
> useful for testing.
> {code}
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve
> endpoint: jcr://gregor:@repository/home/test due to: null
> at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:534)
> at
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:71)
> at
> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:190)
> at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)
> at
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)
> at
> org.apache.camel.model.SendDefinition.resolveEndpoint(SendDefinition.java:61)
> at
> org.apache.camel.model.SendDefinition.createProcessor(SendDefinition.java:55)
> at
> org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:499)
> at
> org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:212)
> at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:907)
> ... 38 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.camel.component.jcr.JcrEndpoint.<init>(JcrEndpoint.java:60)
> at
> org.apache.camel.component.jcr.JcrComponent.createEndpoint(JcrComponent.java:31)
> at
> org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:123)
> at
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:514)
> ... 47 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)