Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-2619

ClassLoaderUtils doesn't support spaces between paths or URLs in the paths

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • None
    • 1.0.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mattyb149 Matt Burgess
            mattyb149 Matt Burgess
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment