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

Cache must add default extension befor accessing the file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.1 Final
    • 2.01
    • core
    • None

    Description

      1. Enter a URL to a file without the .html extension
      e.g. http://www.charles-voegele.ch/ch/de/Events/Neueroffnung
      2. The cache will create a file without the extension
      e.g. /var/cache/public/default/ch/de/Events/Neueroffnung
      3. Access a URL below the current page
      e.g. http://www.charles-voegele.ch/ch/de/Events/Neueroffnung/Vevey
      4. The cache will try to create a directory
      e.g. /var/cache/public/default/ch/de/Events/Neueroffnung

      The create directory command will fail because there already is a file with that name.

      An error is logged:
      info.magnolia.cms.core.CacheHandler 08.03.2005 19:52:01 – ERROR – Can not create director
      y - /var/cache/public/default/ch/de/Events/Neueroffnung
      info.magnolia.cms.core.CacheHandler 08.03.2005 19:52:01 – ERROR – Not a directory
      java.io.IOException: Not a directory
      at java.io.UnixFileSystem.createFileExclusively(Native Method)
      at java.io.File.createNewFile(File.java:828)
      at info.magnolia.cms.core.CacheHandler.cacheURI(CacheHandler.java:86)
      at info.magnolia.cms.core.CacheProcess.run(CacheProcess.java:49)

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              scharles Sameer Charles
              weder Andreas Weder
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD