Uploaded image for project: 'Magnolia Resources Module'
  1. Magnolia Resources Module
  2. MGNLRES-60

Allow loading of file system resources from relative path

XMLWordPrintable

      Following from SUPPORT-1942 which we opened, MGNLRES-52 introduced a feature to allow configuring filesystem resource loaders, as documented via DOCU-349.

      This almost solves our use case, but sadly FileSystemResourceLoader currently doesn't allow using relative paths. Since our application has to work in many different environments, using absolute paths is not really an option.

      I believe that if on line 76 of FileSystemResourceLoader (version 1.5.10) 'path' would be changed to 'file.getCanonicalPath()' the feature would still be secure, but would also allow using relative paths.

        Acceptance criteria

              rkovarik Roman Kovařík
              breun Nils Breunese
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: