axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Attanayake (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RAMPART-366) sp:EncryptBeforeSigning protection order does not work
Date Thu, 12 Sep 2013 14:56:52 GMT

    [ https://issues.apache.org/jira/browse/RAMPART-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13765497#comment-13765497
] 

Suresh Attanayake commented on RAMPART-366:
-------------------------------------------

Yes, EncryptBeforeSigning is supported in rampart. However SignedEncryptedSupportingTokens
is not supported. However SignedEncryptedSupportingTokens is not supported in the PolicyBasedResultsValidator
for signature and encryption handling. 

Cannot reproduce this error. Attaching the policy I tried and the given bellow is the error
I get, it is due to SignedEncryptedSupportingTokens are not supported yet. 

[INFO] Listening on port 8080
     [java] [SimpleHTTPServer] Started
     [java] [ERROR] Unexpected encrypted data found, no encryption required
     [java] org.apache.axis2.AxisFault: Unexpected encrypted data found, no encryption required
     [java] 	at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:186)
     [java] 	at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99)
     [java] 	at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:335)
     [java] 	at org.apache.axis2.engine.Phase.invoke(Phase.java:308)
     [java] 	at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:250)
     [java] 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:156)
     [java] 	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:176)
     [java] 	at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:297)
     [java] 	at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
     [java] 	at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
     [java] 	at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
     [java] 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
     [java] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
     [java] 	at java.lang.Thread.run(Thread.java:662)
     [java] Caused by: org.apache.rampart.RampartException: Unexpected encrypted data found,
no encryption required
     [java] 	at org.apache.rampart.PolicyBasedResultsValidator.validateEncrSig(PolicyBasedResultsValidator.java:271)
     [java] 	at org.apache.rampart.PolicyBasedResultsValidator.validate(PolicyBasedResultsValidator.java:153)
     [java] 	at org.apache.rampart.RampartEngine.process(RampartEngine.java:266)
     [java] 	at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
     [java] 	... 12 more

  
                
> sp:EncryptBeforeSigning protection order does not work
> ------------------------------------------------------
>
>                 Key: RAMPART-366
>                 URL: https://issues.apache.org/jira/browse/RAMPART-366
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.7.0
>            Reporter: Philippe A
>         Attachments: policy.xml, tested-policy.xml
>
>
> Specifying <sp:EncryptBeforeSigning/> protection order in my <sp:SymmetricBinding>
security binding results in my Axis server returning the following fault:
> org.apache.axis2.AxisFault: An unsupported signature or encryption algorithm was used
(WSSecurityEngine: EncryptedData does not contain xenc:EncryptedKey)
> My requests go through if I comment out <sp:EncryptBeforeSigning/> from my policy.
My requests also go through with similar security options <sp:SignBeforeEncrypting/>
+ <sp:EncryptSignature/>.  
> In Axis 1.5.2 + Rampart 1.5.2 and in 1.6.1, the symptom is the following:
> 2012-04-24 17:41:43,604 [main] DEBUG org.apache.rampart.MESSAGE  - ***********************
RampartReceiver received
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Server</faultcode>
>       <faultstring>Missing argument</faultstring>
>       <detail />
>     </soapenv:Fault>
>   </soapenv:Body>
> </soapenv:Envelope>
> Lastly, I looked for a Rampart example using sp:EncryptBeforeSigning  but found none.
I wonder if this is supported at all?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message