On Fri, Jan 27, 2012 at 9:55 PM, COURTAULT Francois < francois.courta...@gemalto.com> wrote:
> Hello, > > Just for you to know regarding the tests I have made: > - Axis2-1.5.1 and rampart-1.5: OK > - Axis2-1.5.6 and rampart-1.5.2: OK > - Axis2-1.6.0 and rampart-1.6.0: OK > - Axis2-1.6.1 and rampart-1.6.1: KO > > So I am pretty sure that it is a 1.6.1 bug. > Regarding the 1.6.2 snapshot: I have found the rampart > (rampart-dist-1.6.2-20120124.041736-109-bin.zip) one but not the axis2 one. > Where can I find it ? > You can download it from here [1] . Is there any possibility to provide your sample ? [1] - https://builds.apache.org/view/A-F/view/Axis2/job/axis2-1.6/ws/axis2/modules/distribution/target/ Thanks ! > > Other question: imagine the 1.6.2 snapshot works when this release will be > out ? > > Best Regards. > > -----Original Message----- > From: Andreas Veithen [mailto:andreas.veit...@gmail.com] > Sent: jeudi 26 janvier 2012 21:49 > To: java-user@axis.apache.org > Subject: Re: Policy not supported: is it a bug ? > > Can you test this with Axis2 and Rampart 1.6.2-SNAPSHOT? > > Andreas > > On Thu, Jan 26, 2012 at 16:30, COURTAULT Francois < > francois.courta...@gemalto.com> wrote: > > Hello everybody, > > > > > > > > It seems that the following policy is not supported by axis2-1.6.1. I > > got the error: java.lang.IllegalArgumentException: > > {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}TransportTo > > ken is not a <wsp:Policy> element. > > > > > > > > The policy generated in the axis2 adb stub is: > > > > <wsp:Policy wsu:Id="foo" > > > > xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" > > > > > > xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wss > > ecurity-utility-1.0.xsd"> > > > > <wsp:ExactlyOne> > > > > <wsp:All> > > > > <ns1:TransportBinding > > > > > > xmlns:ns1="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"> > > > > > > <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> > > > > > > <ns1:TransportToken> > > > > > > <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> > > > > > > <ns1:HttpsToken /> > > > > > > </wsp:Policy> > > > > > > </ns1:TransportToken> > > > > > > <ns1:AlgorithmSuite> > > > > > > <wsp:Policy > > xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> > > > > > > <ns1:Basic256 /> > > > > > > </wsp:Policy> > > > > > > </ns1:AlgorithmSuite> > > > > > > <ns1:Layout> > > > > > > <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> > > > > > > <ns1:Lax /> > > > > > > </wsp:Policy> > > > > > > </ns1:Layout> > > > > > > <ns1:IncludeTimestamp /> > > > > > > </wsp:Policy> > > > > > > </ns1:TransportBinding> > > > > <ns2:SupportingTokens > > > > > > xmlns:ns2="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"> > > > > > > <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> > > > > > > <ns2:UsernameToken> > > > > > > <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> > > > > > > <ns2:WssUsernameToken10 /> > > > > > > </wsp:Policy> > > > > > > </ns2:UsernameToken> > > > > > > </wsp:Policy> > > > > > > </ns2:SupportingTokens> > > > > </wsp:All> > > > > </wsp:ExactlyOne> > > > > </wsp:Policy> > > > > > > > > After digging in the axis source code, I saw that in the > > PolicyBuilder.java (line 173), a test Constants.isPolicyElement(qn) is > > made which returns false and so throws an IllegalArgumentException(qn > > + " is not a <wsp:Policy> element."). The problem is that after > > checking the Constants.java code, it seems that the namespace > > http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702 is not > > handled at all !!! > > > > > > > > Is it a bug ? If the answer is yes: is there any workaround ? > > > > > > > > Best Regards. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://people.apache.org/~sagara/ LinkedIn - http://www.linkedin.com/in/ssagara