You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "vijay (JIRA)" <ji...@apache.org> on 2011/09/19 18:31:11 UTC

[jira] [Created] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: RAMPART-336
                 URL: https://issues.apache.org/jira/browse/RAMPART-336
             Project: Rampart
          Issue Type: Bug
          Components: rampart-core
    Affects Versions: 1.5
         Environment: Windows, jdk1/5 jdk1.6
            Reporter: vijay


In my WS policy i have the following EncryptedElements 

               <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
                    <sp:Header Namespace="http://www.testsoftware.com" />
              </sp:EncryptedParts>

here is the header that gets embedded into the soapheader. 
<test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>

on the server side, i have TestMessageReceiver extends RPCMessageReceiver
in my receive(final MessageContext arg0) method
when i print the soap-header arg0.getEnvelope().getHeader() 

i get only the password element and 2 other elements are missing.

<test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>


attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate

This is a issue in see in rampart1.5 

with the same example,
The same missing elements issue happens when the WS policy uses
EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.

                <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
		</sp:EncryptedElements>

is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.

Thanks in advance,


--
This message is automatically generated by JIRA.
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


[jira] [Updated] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

Posted by "Amila Jayasekara (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Jayasekara updated RAMPART-336:
-------------------------------------

    Attachment: RAMPART-336.diff

Hi Vijay,

I am attaching a patch for this issue. Please test with the attached patch.

Thanks
AmilaJ
                
> EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-336
>                 URL: https://issues.apache.org/jira/browse/RAMPART-336
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.5
>         Environment: Windows, jdk1/5 jdk1.6
>            Reporter: vijay
>         Attachments: RAMPART-336.diff, SOAPRequest.txt, sample03.zip
>
>
> In my WS policy i have the following EncryptedElements 
>                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                     <sp:Header Namespace="http://www.testsoftware.com" />
>               </sp:EncryptedParts>
> here is the header that gets embedded into the soapheader. 
> <test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>
> on the server side, i have TestMessageReceiver extends RPCMessageReceiver
> in my receive(final MessageContext arg0) method
> when i print the soap-header arg0.getEnvelope().getHeader() 
> i get only the password element and 2 other elements are missing.
> <test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>
> attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate
> This is a issue in see in rampart1.5 
> with the same example,
> The same missing elements issue happens when the WS policy uses
> EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.
>                 <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> 		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> 		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
> 		</sp:EncryptedElements>
> is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.
> Thanks in advance,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

Posted by "vijay (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

vijay updated RAMPART-336:
--------------------------

    Attachment: SOAPRequest.txt
                sample03.zip

> EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-336
>                 URL: https://issues.apache.org/jira/browse/RAMPART-336
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.5
>         Environment: Windows, jdk1/5 jdk1.6
>            Reporter: vijay
>         Attachments: SOAPRequest.txt, sample03.zip
>
>
> In my WS policy i have the following EncryptedElements 
>                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                     <sp:Header Namespace="http://www.testsoftware.com" />
>               </sp:EncryptedParts>
> here is the header that gets embedded into the soapheader. 
> <test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>
> on the server side, i have TestMessageReceiver extends RPCMessageReceiver
> in my receive(final MessageContext arg0) method
> when i print the soap-header arg0.getEnvelope().getHeader() 
> i get only the password element and 2 other elements are missing.
> <test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>
> attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate
> This is a issue in see in rampart1.5 
> with the same example,
> The same missing elements issue happens when the WS policy uses
> EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.
>                 <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> 		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> 		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
> 		</sp:EncryptedElements>
> is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.
> Thanks in advance,

--
This message is automatically generated by JIRA.
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


[jira] [Commented] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117577#comment-13117577 ] 

Hudson commented on RAMPART-336:
--------------------------------

Integrated in Rampart #579 (See [https://builds.apache.org/job/Rampart/579/])
    Reverted r1177260 because that change actually depends on a bug in DOOM that is now fixed (see r1177407). With that change in Axiom, the problem described in RAMPART-336 no longer occurs.

veithen : 
Files : 
* /axis/axis2/java/rampart/trunk/modules/rampart-core/src/main/java/org/apache/rampart/util/Axis2Util.java

                
> EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-336
>                 URL: https://issues.apache.org/jira/browse/RAMPART-336
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.5
>         Environment: Windows, jdk1/5 jdk1.6
>            Reporter: vijay
>            Assignee: Thilina Buddhika
>             Fix For: 1.7.0, 1.6.2
>
>         Attachments: RAMPART-336.diff, SOAPRequest.txt, sample03.zip
>
>
> In my WS policy i have the following EncryptedElements 
>                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                     <sp:Header Namespace="http://www.testsoftware.com" />
>               </sp:EncryptedParts>
> here is the header that gets embedded into the soapheader. 
> <test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>
> on the server side, i have TestMessageReceiver extends RPCMessageReceiver
> in my receive(final MessageContext arg0) method
> when i print the soap-header arg0.getEnvelope().getHeader() 
> i get only the password element and 2 other elements are missing.
> <test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>
> attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate
> This is a issue in see in rampart1.5 
> with the same example,
> The same missing elements issue happens when the WS policy uses
> EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.
>                 <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> 		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> 		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
> 		</sp:EncryptedElements>
> is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.
> Thanks in advance,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Assigned] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

Posted by "Thilina Buddhika (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thilina Buddhika reassigned RAMPART-336:
----------------------------------------

    Assignee: Thilina Buddhika
    
> EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-336
>                 URL: https://issues.apache.org/jira/browse/RAMPART-336
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.5
>         Environment: Windows, jdk1/5 jdk1.6
>            Reporter: vijay
>            Assignee: Thilina Buddhika
>         Attachments: RAMPART-336.diff, SOAPRequest.txt, sample03.zip
>
>
> In my WS policy i have the following EncryptedElements 
>                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                     <sp:Header Namespace="http://www.testsoftware.com" />
>               </sp:EncryptedParts>
> here is the header that gets embedded into the soapheader. 
> <test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>
> on the server side, i have TestMessageReceiver extends RPCMessageReceiver
> in my receive(final MessageContext arg0) method
> when i print the soap-header arg0.getEnvelope().getHeader() 
> i get only the password element and 2 other elements are missing.
> <test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>
> attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate
> This is a issue in see in rampart1.5 
> with the same example,
> The same missing elements issue happens when the WS policy uses
> EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.
>                 <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> 		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> 		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
> 		</sp:EncryptedElements>
> is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.
> Thanks in advance,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Resolved] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

Posted by "Thilina Buddhika (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thilina Buddhika resolved RAMPART-336.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.2
                   1.7.0

Verified the fix using the sample attached by Vijay. Thanks AmilaJ for your contribution.
                
> EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-336
>                 URL: https://issues.apache.org/jira/browse/RAMPART-336
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.5
>         Environment: Windows, jdk1/5 jdk1.6
>            Reporter: vijay
>            Assignee: Thilina Buddhika
>             Fix For: 1.7.0, 1.6.2
>
>         Attachments: RAMPART-336.diff, SOAPRequest.txt, sample03.zip
>
>
> In my WS policy i have the following EncryptedElements 
>                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                     <sp:Header Namespace="http://www.testsoftware.com" />
>               </sp:EncryptedParts>
> here is the header that gets embedded into the soapheader. 
> <test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>
> on the server side, i have TestMessageReceiver extends RPCMessageReceiver
> in my receive(final MessageContext arg0) method
> when i print the soap-header arg0.getEnvelope().getHeader() 
> i get only the password element and 2 other elements are missing.
> <test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>
> attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate
> This is a issue in see in rampart1.5 
> with the same example,
> The same missing elements issue happens when the WS policy uses
> EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.
>                 <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> 		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> 		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
> 		</sp:EncryptedElements>
> is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.
> Thanks in advance,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Commented] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117580#comment-13117580 ] 

Hudson commented on RAMPART-336:
--------------------------------

Integrated in ws-axiom-trunk #571 (See [https://builds.apache.org/job/ws-axiom-trunk/571/])
    Fixed an issue in DOOM: the detach() method didn't update the previousSibling and nextSibling attributes of the node. This is related to RAMPART-336.

veithen : 
Files : 
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ChildNode.java
* /webservices/commons/trunk/modules/axiom/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/node/TestDetach.java

                
> EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-336
>                 URL: https://issues.apache.org/jira/browse/RAMPART-336
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.5
>         Environment: Windows, jdk1/5 jdk1.6
>            Reporter: vijay
>            Assignee: Thilina Buddhika
>             Fix For: 1.7.0, 1.6.2
>
>         Attachments: RAMPART-336.diff, SOAPRequest.txt, sample03.zip
>
>
> In my WS policy i have the following EncryptedElements 
>                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                     <sp:Header Namespace="http://www.testsoftware.com" />
>               </sp:EncryptedParts>
> here is the header that gets embedded into the soapheader. 
> <test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>
> on the server side, i have TestMessageReceiver extends RPCMessageReceiver
> in my receive(final MessageContext arg0) method
> when i print the soap-header arg0.getEnvelope().getHeader() 
> i get only the password element and 2 other elements are missing.
> <test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>
> attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate
> This is a issue in see in rampart1.5 
> with the same example,
> The same missing elements issue happens when the WS policy uses
> EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.
>                 <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> 		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> 		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
> 		</sp:EncryptedElements>
> is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.
> Thanks in advance,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Work started] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

Posted by "Thilina Buddhika (Work started) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on RAMPART-336 started by Thilina Buddhika.

> EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-336
>                 URL: https://issues.apache.org/jira/browse/RAMPART-336
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.5
>         Environment: Windows, jdk1/5 jdk1.6
>            Reporter: vijay
>            Assignee: Thilina Buddhika
>         Attachments: RAMPART-336.diff, SOAPRequest.txt, sample03.zip
>
>
> In my WS policy i have the following EncryptedElements 
>                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                     <sp:Header Namespace="http://www.testsoftware.com" />
>               </sp:EncryptedParts>
> here is the header that gets embedded into the soapheader. 
> <test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>
> on the server side, i have TestMessageReceiver extends RPCMessageReceiver
> in my receive(final MessageContext arg0) method
> when i print the soap-header arg0.getEnvelope().getHeader() 
> i get only the password element and 2 other elements are missing.
> <test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>
> attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate
> This is a issue in see in rampart1.5 
> with the same example,
> The same missing elements issue happens when the WS policy uses
> EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.
>                 <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> 		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> 		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
> 		</sp:EncryptedElements>
> is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.
> Thanks in advance,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Issue Comment Edited] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

Posted by "Thilina Buddhika (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117231#comment-13117231 ] 

Thilina Buddhika edited comment on RAMPART-336 at 9/29/11 12:17 PM:
--------------------------------------------------------------------

Fixed as r1177262. 

Verified the fix using the sample attached by Vijay. Thanks AmilaJ for your contribution.
                
      was (Author: thilinamb):
    Verified the fix using the sample attached by Vijay. Thanks AmilaJ for your contribution.
                  
> EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-336
>                 URL: https://issues.apache.org/jira/browse/RAMPART-336
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.5
>         Environment: Windows, jdk1/5 jdk1.6
>            Reporter: vijay
>            Assignee: Thilina Buddhika
>             Fix For: 1.7.0, 1.6.2
>
>         Attachments: RAMPART-336.diff, SOAPRequest.txt, sample03.zip
>
>
> In my WS policy i have the following EncryptedElements 
>                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                     <sp:Header Namespace="http://www.testsoftware.com" />
>               </sp:EncryptedParts>
> here is the header that gets embedded into the soapheader. 
> <test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>
> on the server side, i have TestMessageReceiver extends RPCMessageReceiver
> in my receive(final MessageContext arg0) method
> when i print the soap-header arg0.getEnvelope().getHeader() 
> i get only the password element and 2 other elements are missing.
> <test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>
> attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate
> This is a issue in see in rampart1.5 
> with the same example,
> The same missing elements issue happens when the WS policy uses
> EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.
>                 <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> 		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> 		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
> 		</sp:EncryptedElements>
> is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.
> Thanks in advance,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Commented] (RAMPART-336) EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.

Posted by "Amila Jayasekara (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116939#comment-13116939 ] 

Amila Jayasekara commented on RAMPART-336:
------------------------------------------

The patch is created on revision 1177137 relative to trunk (http://svn.apache.org/repos/asf/axis/axis2/java/rampart/trunk)

Thanks
AmilaJ
                
> EncryptedParts header encrpyion with namespace and EncryptedElements with xpath policy, missing some elements in MessageReceiver on server side.
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-336
>                 URL: https://issues.apache.org/jira/browse/RAMPART-336
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.5
>         Environment: Windows, jdk1/5 jdk1.6
>            Reporter: vijay
>         Attachments: RAMPART-336.diff, SOAPRequest.txt, sample03.zip
>
>
> In my WS policy i have the following EncryptedElements 
>                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
>                     <sp:Header Namespace="http://www.testsoftware.com" />
>               </sp:EncryptedParts>
> here is the header that gets embedded into the soapheader. 
> <test:Credentials xmlns:curam="http://www.testsoftware.com"><TestUsername>beantester</TestUsername><Username>beantester</Username><Password>password</Password></test:Credentials>
> on the server side, i have TestMessageReceiver extends RPCMessageReceiver
> in my receive(final MessageContext arg0) method
> when i print the soap-header arg0.getEnvelope().getHeader() 
> i get only the password element and 2 other elements are missing.
> <test:Credentials xmlns:test="http://www.testsoftware.com"><Password>password</Password></test:Credentials>
> attaching sample03.zip and soaprequest.txt  . this samples can be copied to rampart-1.5\samples\policy\  and can be run to recreate
> This is a issue in see in rampart1.5 
> with the same example,
> The same missing elements issue happens when the WS policy uses
> EncryptedElements  with xpath, enrypting a xml-fragment inside the SOAPHeader.
>                 <sp:EncryptedElements xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> 		        xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
> 		        <sp:XPath xmlns:test="http://www.testsoftware.com">/soapenv:Envelope/soapenv:Header/test:Credentials</sp:XPath>
> 		</sp:EncryptedElements>
> is there any patch that i can look from rampart sources , as i need to use rampart1.5 as its bound to a axis2 2.1.5.1 version.
> Thanks in advance,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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