You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/03/28 08:33:41 UTC

[jira] [Updated] (CAMEL-11080) OnExceptionDefinition validation ignores redeliveryPolicy field

     [ https://issues.apache.org/jira/browse/CAMEL-11080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-11080:
--------------------------------
    Fix Version/s: 2.19.0

> OnExceptionDefinition validation ignores redeliveryPolicy field
> ---------------------------------------------------------------
>
>                 Key: CAMEL-11080
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11080
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.16.5
>         Environment: Linux, Java 1.7
>            Reporter: Richard O'Sullivan
>            Assignee: Claus Ibsen
>            Priority: Minor
>              Labels: features
>             Fix For: 2.19.0
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> 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?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)