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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Duplicate
    • Affects Version/s: 5.7.2, 6.0
    • Fix Version/s: None
    • Component/s: templating
    • Labels:
      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: