[
https://issues.apache.org/jira/browse/NIFI-2619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430960#comment-15430960
]
ASF GitHub Bot commented on NIFI-2619:
--------------------------------------
GitHub user mattyb149 opened a pull request:
https://github.com/apache/nifi/pull/907
NIFI-2619: Added logic to ClassLoaderUtils to trim module paths and accept
URLs
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mattyb149/nifi NIFI-2619
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/907.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #907
----
commit 663ada18ff39deb261b6923c47f1f422b859e302
Author: Matt Burgess <[email protected]>
Date: 2016-08-22T15:09:14Z
NIFI-2619: Added unit test showing bugs
commit 623d41affe5e24142a2fd8a48d97e682e9245af7
Author: Matt Burgess <[email protected]>
Date: 2016-08-22T15:11:52Z
NIFI-2619: Added logic to ClassLoaderUtils to trim module paths and accept
URLs
----
> ClassLoaderUtils doesn't support spaces between paths or URLs in the paths
> --------------------------------------------------------------------------
>
> Key: NIFI-2619
> URL: https://issues.apache.org/jira/browse/NIFI-2619
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Matt Burgess
> Assignee: Matt Burgess
>
> ClassLoaderUtils.getCustomClassLoader() splits a module path list on a comma,
> but doesn't trim the individual entries.
> Also in ClassLoaderUtils.getURLsForClasspath(), it is assumed that the paths
> are Files, but they could also already be URLs. Logic should be added to
> check if the path is already a valid URL, and add it to the list if so.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)