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

ConvertBodyTo should reset message type like transform EIP does

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.9.3, 2.10.0
    • camel-core
    • None
    • Unknown

    Description

      We should make convertBodyTo alike transform/setBody, as when you change the message body, then if any specialized message instances, then we should copy the message to a default message, and set the type converted body. This is how those other EIPs does it.

      If you do a

      from file
        convertBodyTo String
        to file
      

      Then the file producer may detect the GenericFileMessage, from the consumer. But the convert body to, should have converted the message into a default message.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment