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 "Peter Mullins (JIRA)" <ji...@apache.org> on 2010/11/15 23:20:13 UTC

[jira] Created: (AXIS2-4882) AxisBindingMessage effective policy calculation adds policies in incorrect order

AxisBindingMessage effective policy calculation adds policies in incorrect order
--------------------------------------------------------------------------------

                 Key: AXIS2-4882
                 URL: https://issues.apache.org/jira/browse/AXIS2-4882
             Project: Axis2
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.6
            Reporter: Peter Mullins


In the calculateEffectivePolicy method in AxisBindingMessage, PolicyComponents are added in order from the most specific to the most general. This means that when they are combined by iterating over the list (e.g. for use by Rampart in RampartPolicyBuilder), service-wide policies will always override message-level ones. This order should be reversed, so that when the policies are processed in order, more specific policies will override more general ones.

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


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


[jira] Updated: (AXIS2-4882) AxisBindingMessage effective policy calculation adds policies in incorrect order

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

Peter Mullins updated AXIS2-4882:
---------------------------------

    Attachment: AxisBindingMessage.patch

Attached a patch with the change to AxisBindingMessage

> AxisBindingMessage effective policy calculation adds policies in incorrect order
> --------------------------------------------------------------------------------
>
>                 Key: AXIS2-4882
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4882
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6
>            Reporter: Peter Mullins
>         Attachments: AxisBindingMessage.patch
>
>
> In the calculateEffectivePolicy method in AxisBindingMessage, PolicyComponents are added in order from the most specific to the most general. This means that when they are combined by iterating over the list (e.g. for use by Rampart in RampartPolicyBuilder), service-wide policies will always override message-level ones. This order should be reversed, so that when the policies are processed in order, more specific policies will override more general ones.

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


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