Axis2
  1. Axis2
  2. AXIS2-4882

AxisBindingMessage effective policy calculation adds policies in incorrect order

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.0
    • Fix Version/s: None
    • Component/s: kernel
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Peter Mullins added a comment -

        Attached a patch with the change to AxisBindingMessage

        Show
        Peter Mullins added a comment - Attached a patch with the change to AxisBindingMessage

          People

          • Assignee:
            Unassigned
            Reporter:
            Peter Mullins
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development