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

Links to files with whitespaces stored directly in nodes are currently broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • 5.7.2, 6.0
    • templating
    • None

    Description

      when a file with whitespaces in the name is stored in a workspace, when it is retrieved from the template, it cannot be found because the URL is not generated propertly.

      Steps to reproduce(demoauthor):
      1. Go to Configurations app and add a new Dam upload filed (fileUpload.xml) to the tours app. (/modules/tours/apps/tours/subApps/detail/editor/form/tabs/tour/fields).
      2. Go to Tours App and upload a file whitespaces in its name (for example to /magnolia-travels/Vietnam--Tradition-and-Today).
      3. Add the following code to a tempate (for instance to html component in mtk)

      <a href="${cmsfn.link(cmsfn.contentByPath('/magnolia-travels/Vietnam--Tradition-and-Today/photo', 'tours'))}">My file</a>
      

      4. Go to pages app and use Basic template to create a page. Add and HTML component to this page.

      Expected: link to the file you have uploaded.
      Actual result: 404 error page.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                asiska Adam Siska
                miruela Mercedes Iruela
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD