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

Classpath service won't serve resource if virtual tree has a file/folder overlap

    XMLWordPrintable

Details

    Description

      Classpath service/origin should serve resource files no matter what; and regardless of how we model that as a virtual directory structure.

      Assuming you have:

      • in module A: src/main/resources/test/samename (plain text)
      • in module B: src/main/resources/test/samename/subfile.txt (samename is now a virtual directory)

      http://localhost:8080/magnoliaAuthor/.resources/test/samename is served properly
      http://localhost:8080/magnoliaAuthor/.resources/test/samename/subfile.txt results in a 404

      This is clearly highlighted in ClasspathEntryResolver, that it ignores sub-directory structures in such cases—which to me is just wrong.


      Other potential harmful (and deferred) side-effect: create a "travel-demo" mgnl:content node in resources workspace, on next restart the whole travel-demo is down.
      Defs are expectedly not registered; no static resource reachable in there either.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mgeljic Mikaël Geljić
                mgeljic Mikaël Geljić
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - 4d
                      4d
                      Remaining:
                      Remaining Estimate - 4d
                      4d
                      Logged:
                      Time Spent - Not Specified
                      Not Specified