You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Martin Zink (Jira)" <ji...@apache.org> on 2025/06/03 13:12:00 UTC

[jira] [Resolved] (MINIFICPP-2478) Validators dont support EL

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

Martin Zink resolved MINIFICPP-2478.
------------------------------------
    Resolution: Duplicate

> Validators dont support EL
> --------------------------
>
>                 Key: MINIFICPP-2478
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2478
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Bug
>            Reporter: Martin Zink
>            Assignee: Martin Zink
>            Priority: Major
>
> e.g.
> this would fail
> {code:cpp}
> TEST_CASE_METHOD(FetchAzureDataLakeStorageTestsFixture, "Number of Retries is set", "[azureDataLakeStorageFetch]") {
>   plan_->setProperty(azure_data_lake_storage_, minifi::azure::processors::FetchAzureDataLakeStorage::NumberOfRetries, "${literal(1)}");
>   test_controller_.runSession(plan_, true);
>   REQUIRE(mock_data_lake_storage_client_ptr_->getPassedFetchParams().number_of_retries == 1);
> }
> {code}
> with
> {code:cpp}
> EXTENSIONAPI static constexpr auto NumberOfRetries = core::PropertyDefinitionBuilder<>::createProperty("Number of Retries")
>       .withDescription("The number of automatic retries to perform if the download fails.")
>       .withPropertyType(core::StandardPropertyTypes::UNSIGNED_LONG_TYPE)
>       .withDefaultValue("0")
>       .supportsExpressionLanguage(true)
>       .build();
> {code}
> but succeed with
> {code:cpp}
> EXTENSIONAPI static constexpr auto NumberOfRetries = core::PropertyDefinitionBuilder<>::createProperty("Number of Retries")
>       .withDescription("The number of automatic retries to perform if the download fails.")
>       .withDefaultValue("0")
>       .supportsExpressionLanguage(true)
>       .build();
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)