IIRC this seems to be an issue with Rampart 1.4 - and fixed in 1.5 to be released and the trunk.

Thanks & regards.
-Prabath

Filip Majernik wrote:
Hello,
I am using Rampart 1.4 in Apache ODE 1.3.2. Ode is sending a message with
sequence of <xsd:insuree /> elements each of them wrapped by another element
(I generate this elements with a bash script for testing, so all elements
are the same, only the Id is different).
I have defined a ContentEncryptedElements assertion with one XPath
expression like this (using AsymmetricBinding):

<ContentEncryptedElements>
     <XPath xmlns:xsd="...">//xsd:insuree</XPath>
</ContentEncryptedElements>

However, only the first element <xsd:insuree/> is always encrypted in the
message and the others are left in clear text. I've checked it in Rampart
source and the method
RampartUtil.getContentEncryptedElements(), which searches the elements in
the message, finds all <xsd:insuree /> elements in the message. The class
AsymsetricBindingBuilder is not doing anything with that elements, so I
suppose there is something with wss4j encryption?

Can maybe someone help me with this issue?

Thanks,
Filip


Reply via email to