You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Zsihovszki Krisztina (Jira)" <ji...@apache.org> on 2022/10/05 20:07:00 UTC

[jira] [Created] (NIFI-10597) Change 'App Config File' property to external resource in Box processors

Zsihovszki Krisztina created NIFI-10597:
-------------------------------------------

             Summary: 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
             Fix For: 1.19.0


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)