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

WrappedMessageContext containsKey not consistent with get/put

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.7, 3.1.18, 3.3.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      In WrappedMessageContext.get() and put() some extra key translations happen, that are not applied in WrappedMessageContext.containsKey().

      For example MessageContext.HTTP_REQUEST_HEADERS is translated to Message.PROTOCOL_HEADERS here, but not in containsKey().

      So context.get(MessageContext.HTTP_REQUEST_HEADERS) may return a map with headers, while context.containsKey(MessageContext.HTTP_REQUEST_HEADERS) returns false.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ffang Freeman Fang
                Reporter:
                jpraet Jimmy Praet
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: