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

StaxDataBindingInterceptor does not correctly resolve the Operation according to message

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.7.18
    • Fix Version/s: None
    • Component/s: JAX-WS Runtime
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      StaxDataBindingInterceptor does not correctly resolve the Operation according to message.

      Notice that here:

      https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/databinding/stax/StaxDataBindingInterceptor.java#L68

      is not taking into account that there are times when the binding have multiple operations. So the Operation info has to be resolved according to the operation in the message. 

      For example:

       

            if (bop == null) {
                  Endpoint ep = exchange.get(Endpoint.class);
                  bop = ep.getBinding().getBindingInfo().getOperation(xmlReader.getName());
                  if (bop == null) {
                      bop = ep.getBinding().getBindingInfo().getOperations().iterator().next();
                  }
              }
      

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fabian.gonzalez Fabian González
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: