camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmh <jeanmarc.her...@nrb.be>
Subject netty4-http and security constraint don't work as expected
Date Fri, 16 Oct 2015 11:17:38 GMT
Hello,

netty4-http strips the starting endpoint path so the target is relative to
the endpoint uri

How can it work with securtiy config based on url in the example below ?
 That doesn't work as expected because the target is empty...

Here is my route defined in rest dsl with netty4-http component :

<rest path="/part">
   			<get uri="/list/cities" consumes="application/json"
produces="application/json">


and a constraint url based


	<bean id="constraint"
		class="org.apache.camel.component.netty4.http.SecurityConstraintMapping">
		<property name="exclusions">
			<set>
				<value>/part/*</value>
			</set>
		</property>
		<property name="inclusions">
			<map>
				<entry key="/part/list/cities" value="*" />
			</map>
		</property>
	</bean>

Thanks in advance for your help...

Regards
J-M



--
View this message in context: http://camel.465427.n5.nabble.com/netty4-http-and-security-constraint-don-t-work-as-expected-tp5772712.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message