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

camel-caffeine - Caffeine-cache query parameter action does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.1
    • 3.18.2, 3.19.0
    • camel-caffeine
    • None
    • Unknown

    Description

      Caffeine-cache example using headers works fine:

              from("timer:test2")
                      .setBody(constant("VALUE_1"))
                      .setHeader("CamelCaffeineAction", constant("PUT"))
                      .to("caffeine-cache://cache?key=1")
                      .setBody(constant("VALUE_2"))
                      .setHeader("CamelCaffeineAction", constant("GET"))
                      .to("caffeine-cache://cache?key=1")
                      .log("Result2: ${body}, ${header.CamelCaffeineActionHasResult}");
      

      Same code using query parameter action does not work:

              from("timer:test1")
                      .setBody(constant("VALUE_1"))
                      .to("caffeine-cache://cache?action=PUT&key=1")
                      .setBody(constant("VALUE_2"))
                      .to("caffeine-cache://cache?key=1&action=GET")
                      .log("Result1: ${body}, ${header.CamelCaffeineActionHasResult}");
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              marat.gubaidullin@gmail.com Marat Gubaidullin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: