Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1479

Plugins couldnt load settings xml files from the classpath, if they are inside a jar

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

Details

    • Patch

    Description

      RangerConfiguration first checks, if the necessary xml files are on the classpath, and after it tries to convert it to a file path, check that file is on the filesystem, and convert that path to back to URL. If the configurations are inside a jar, then this will fail very badly (the resource url will be something file://config.jar!/ranger-services.xml )

      If the conversion is removed, it would work pretty nicely

      Attachments

        Activity

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

          People

            zsombor Zsombor Gegesy
            zsombor Zsombor Gegesy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment