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

OnExceptionDefinition validation ignores redeliveryPolicy field

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.16.5
    • Fix Version/s: 2.19.0
    • Component/s: camel-core
    • Labels:
    • Environment:

      Linux, Java 1.7

    • Estimated Complexity:
      Moderate

      Description

      The OnExceptionDefinition provides DSL methods redeliveryPolicy(...) and redeliveryPolicyRef(...) to configure a reusable RedeliveryPolicy instance. However, the validateConfiguration() method does not include redeliveryPolicy as one of the possible options. Thus, the following trows a IllegalArgumentException:

      .onException(IOException.class)
      .redeliveryPolicy(myRedeliveryPolicy)
      .end()

      Note: The getOrCreateRedeliveryPolicy() creates a new RedeliveryPolicyDefinition() and should get its initial properties from redeliveryPolicy, when the latter is set, methinks.

      Note: The getRedeliveryPolicy() and setRedeliveryPolicy(...) act on a RedeliveryPolicyDefinition instead of a RedeliveryPolicy. Bug?

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              richaosu Richard O'Sullivan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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