You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Lehel Boér (Jira)" <ji...@apache.org> on 2023/04/27 19:22:00 UTC

[jira] [Updated] (NIFI-11493) Dynamically modified classpaths do not work with default property values

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

Lehel Boér updated NIFI-11493:
------------------------------
    Description: 
When a PropertDescriptor is enabled to dynamically modify the classpath e.g.
{code:java}
static final PropertyDescriptor URLS = new PropertyDescriptor.Builder()
.name("URLs to Load")
.description("URLs to load onto the classpath")
.required(false)
.defaultValue("lib/bootstrap/commons-lang3-3.12.0.jar")
.dynamicallyModifiesClasspath(true)
.identifiesExternalResource(ResourceCardinality.MULTIPLE, ResourceType.URL, ResourceType.FILE, ResourceType.DIRECTORY)
.build();{code}
If property is not set, the additional classpath URL will not be added to the classloader by using the property's default value.

> Dynamically modified classpaths do not work with default property values
> ------------------------------------------------------------------------
>
>                 Key: NIFI-11493
>                 URL: https://issues.apache.org/jira/browse/NIFI-11493
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Lehel Boér
>            Assignee: Lehel Boér
>            Priority: Major
>
> When a PropertDescriptor is enabled to dynamically modify the classpath e.g.
> {code:java}
> static final PropertyDescriptor URLS = new PropertyDescriptor.Builder()
> .name("URLs to Load")
> .description("URLs to load onto the classpath")
> .required(false)
> .defaultValue("lib/bootstrap/commons-lang3-3.12.0.jar")
> .dynamicallyModifiesClasspath(true)
> .identifiesExternalResource(ResourceCardinality.MULTIPLE, ResourceType.URL, ResourceType.FILE, ResourceType.DIRECTORY)
> .build();{code}
> If property is not set, the additional classpath URL will not be added to the classloader by using the property's default value.



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