Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2499

(EffectivePolicyImpl/PolicyEngineImpl) Policy engine for ws security policy (based on wsdl attachment) fails to apply message level policies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.5
    • WS-* Components
    • None

    Description

      The problem is caused by the initialisePolicy method in the EffectivePolicyImpl.

      The original method decided which BindingMessageInfo is used based on the boolean requestor, which results in always using the OutputBindingMessage on server-side respective Input.- on the client side. To fix this I introduced a new parameter (boolean request) which is used for this decisions. The parameter has to be passed from different methods in the PolicyEngineImpl. Thus I also slightly changed the PolicyEngineImpl.

      Since I don't want to rebuild the jar I extended both classed, reimplemented the necessary methods and registered them as policy engine in my cxf.xml.

      Thus I can't attach a patch, but I append the extended implementations.

      Greetings

      Christian

      Attachments

        1. EffectivePolicyImpl.java
          7 kB
          Christian Connert
        2. Messages.properties
          1 kB
          Christian Connert
        3. PolicyEngineImpl.java
          8 kB
          Christian Connert

        Activity

          People

            dkulp Daniel Kulp
            mellowsnow Christian Connert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: