Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6392

Missing resourcesRoot parameter in Magnolia 5.4 ResourcesServlet

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Neutral
    • None
    • 5.4, 5.4.1, 5.4.2
    • None
    • None
    • Yes

    Description

      Looking into the new servlet mapped to /.resources (info.magnolia.module.resources.ResourcesServlet) i noticed that it is not using the servlet parameter "resourcesRoot" like was in info.magnolia.cms.servlets.ClasspathSpool.

      I really would like to have this parameter re-introduced again as it provides a way to "hide" resources from the public by simply adding a path which contains the resources you would like to expose through this servlet.

      This is IMO a better approach then provide a blacklisting using a forbidden resource pattern.

      If this is to much trouble then please make sure that in info.magnolia.module.resources.ResourcesServlet:

      • the linker property can be used using a public getter
      • all protected methods are made public

      This way i can use my own servlet with a resourcesPath which extends the ResourcesServlet as much as possible instead that i have to copy all code.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              gtenham Gerton ten Ham
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD