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

The body of an exchange should not be required when not performing an add or update to the cache

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.7.0
    • camel-cache
    • None
    • Patch Available

    Description

      When not performing an add or update to the cache, the body of the exchange should of no matter and should be nullable.
      At the moment this is not possible when for example performing an operation such as get. It is now required to pass for example an empty string in the body of the exchange, which is kind of useless.

      The attached patch implements the altered behaviour where the body may be nullable when not performing add or update. A CacheException will be thrown when the body is required for an operation but the content of the body is null.
      The patch contains the patched CacheProducer and the tests in CacheProducerTest.

      Attachments

        Activity

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment