You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Nandana Mihindukulasooriya (JIRA)" <ji...@apache.org> on 2008/01/17 07:40:34 UTC

[jira] Commented: (RAMPART-124) /sp:SignedParts/sp:Header selects no elements if the Name attribute is unspecified

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

Nandana Mihindukulasooriya commented on RAMPART-124:
----------------------------------------------------

I tried this scenario in revision 612732 and works fine for me. I generated client code using codegen tool and the policy was correctly serialized. Can you check with the latest revision ? 

> /sp:SignedParts/sp:Header selects no elements if the Name attribute is unspecified
> ----------------------------------------------------------------------------------
>
>                 Key: RAMPART-124
>                 URL: https://issues.apache.org/jira/browse/RAMPART-124
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-policy
>    Affects Versions: 1.3
>            Reporter: Kent Tong
>            Assignee: Nandana Mihindukulasooriya
>             Fix For: 1.3
>
>
> For the assertion below:
> <sp:SignedParts>
> 	<sp:Header Namespace="http://www.w3.org/2005/08/addressing"/>
> </sp:SignedParts>
> It will sign no elements (even though <wsa:To> and etc are present). The cause may be that the generated code 
> in the client stub sets the Name attribute to an empty string when it should have been left out:
> ....setPolicy(getPolicy("...<sp:Header Name=\"\" Namespace=\"http://www.w3.org/2005/08/addressing\" />..."));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.