You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Tamas Palfy (Jira)" <ji...@apache.org> on 2022/10/06 16:57:00 UTC
[jira] [Resolved] (NIFI-10597) Change 'App Config File' property to external resource in Box processors
[ https://issues.apache.org/jira/browse/NIFI-10597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tamas Palfy resolved NIFI-10597.
--------------------------------
Resolution: Fixed
> Change 'App Config File' property to external resource in Box processors
> ------------------------------------------------------------------------
>
> Key: NIFI-10597
> URL: https://issues.apache.org/jira/browse/NIFI-10597
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Zsihovszki Krisztina
> Assignee: Zsihovszki Krisztina
> Priority: Minor
> Fix For: 1.19.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> The Box app configuration can be specified as JSON file for Box processors, see
> "app-config-file" in JsonConfigBasedBoxClientService.
> Google processors use GCPCredentialsControllerService which includes a similar property for the configuration file in JSON format: "service-account-json-file".
> The "service-account-json-file" property uses
> {code:java}
> .identifiesExternalResource(ResourceCardinality.SINGLE, ResourceType.FILE){code}
> in its PropertyDescriptor,
> while "app-config-file" in Box case uses
> {code:java}
> .addValidator(StandardValidators.FILE_EXISTS_VALIDATOR){code}
> It'd be useful to replace the StandardValidators.FILE_EXISTS_VALIDATOR usage with
> identifiesExternalResource in the Box case. It contains the same check for file existence and also checks file accessbility, does not allow to specify directory instead of file.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)