Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10343

Camel Netty4 allowSerializedHeaders

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17.2
    • Fix Version/s: 2.18.0
    • Component/s: camel-netty4
    • Labels:
    • Estimated Complexity:
      Novice

      Description

      When transferExchange = true, NettyPayloadHelper.getIn(NettyEndpoint, Exchange) calls DefaultExchangeHolder.marshal(exchange) that calls DefaultExchangeHolder.marshal(exchange, true, false);

      Third parameter "allowSerializedHeaders" is forced to false and there seems to be no way to call the marshal method with this parameter set to true.

      Because of that, the marshalling of the exchange properties doesn't include the serializable pojos as the "DefaultExchangeHolder.getValidHeaderValue" method excludes those serailizable object when allowSerializedHeaders=false :

      if (allowSerializedHeaders) {
      if (headerValue instanceof Serializable)

      { return headerValue; }

      }

      Hoping to be clear enough.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                acosentino Andrea Cosentino
                Reporter:
                nicolas.duffillot@gmail.com Nicolas Duffillot
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified