camel-jetty component does not work when authentication is enable
-----------------------------------------------------------------
Key: CAMEL-3401
URL: https://issues.apache.org/jira/browse/CAMEL-3401
Project: Camel
Issue Type: Bug
Affects Versions: 2.5.0
Environment: Apache Karaf 2.1-SNAPSHOT
Reporter: Charles Moulliard
I try to use camel-jetty in a camel route usign LDAP authentication. The
authentication mechanisms of Jetty works fine as I'm able to authenticate a
LDAP user from the web page but the camel route is not called.
Here is the camel route
{code}
<camelContext trace="true" xmlns="http://camel.apache.org/schema/spring">
<route>
<from
uri="jetty:http://localhost:8080/services?handlers=securityHandler&matchOnUriPrefix=true"/>
<onException>
<exception>java.lang.Exception</exception>
<!-- we can set the redelivery policy here as well -->
<redeliveryPolicy maximumRedeliveries="1"/>
<handled>
<constant>true</constant>
</handled>
<transform>
<simple>Due to something went wrong</simple>
</transform>
<setHeader headerName="Exchange.HTTP_RESPONSE_CODE">
<simple>500</simple>
</setHeader>
</onException>
<bean ref="responseBean"/>
</route>
</camelContext>
{code}
REMARK : the camel route works fine when authentication is disabled
and the error
{code}
14:56:31,587 | WARN | 0-98 - /services | log |
.eclipse.jetty.util.log.Slf4jLog 40 | 61 - org.eclipse.jetty.util -
7.1.6.v20100715 | /services: java.lang.NullPointerException
14:56:31,587 | DEBUG | 0-98 - /services | log |
.eclipse.jetty.util.log.Slf4jLog 80 | 61 - org.eclipse.jetty.util -
7.1.6.v20100715 | EXCEPTION
java.lang.NullPointerException
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:489)[68:org.eclipse.jetty.security:7.1.6.v20100715]
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)[67:org.eclipse.jetty.server:7.1.6.v20100715]
at
org.eclipse.jetty.server.Server.handle(Server.java:347)[67:org.eclipse.jetty.server:7.1.6.v20100715]
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.