Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-980

Image with non ASCII characters in its name is not usable in pages app

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 3.0.10
    • 3.0.9
    • DAM App

    Description

      Steps to reproduce

      1. Enable UTF-8 support by setting magnolia.utf8.enabled = true in magnolia.properties.
      2. Upload an image containing an Umlaut (e.g. ä) in its name to assets. Make sure the Umlaut is non normalised. E.g. ä is encoded as \x61\xCC\x88. (see also info.magnolia.cms.util.UnicodeNormalizer).
      3.  Add the uploaded image to an image component in the pages app.

      Expected results

      The image displays in the image component.

      Actual results

      The image is not shown in the image component and a javax.jcr.PathNotFoundException  logged.

      Development notes

      Magnolia normalises URIs to NFC form internally. The assets app however accepts non NFC forms for asset names, which makes such assets inaccessible. (See info.magnolia.cms.filters.UnicodeNormalizationFilter).

      Environment

      I was able to reproduce this on OSX with Firefox. Other environments might behave differently depending on how file upload deals with encoding of the filename.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mduerig Michael Duerig
                mduerig Michael Duerig
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD