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)

Reply via email to