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

Camel main - Setting boolean option should have strict conversition

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.M4, 3.0.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If you set an option like

      camel.main.allow-use-original-message=123

      Then its set as false, because we do a Boolean.valueOf convertion which just checks if its "true" or not. Instead we should only allow string values of "true" or "false" otherwise its a invalid value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                davsclaus Claus Ibsen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: