Legacy Knowledge Base
Published Jun. 30, 2025

URL with '+' for document names with whitespace returning 404 error

Written By

Dia Seung

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When I click on a link to a document that has space in the name, and the URL has '+' for the whitespace, such as
    https://www.sample.com/documents/123456/654321/Sample+Document.pdf
    I get a 404 error page instead of the document.
  • The URL works when I replace the '+' with '%20' instead, such as
    https://www.sample.com/documents/123456/654321/Sample%20Document.pdf
  • The Latest Version URL for the document generated by Liferay has '%20' instead of '+', in place of whitespace.

Environment

  • DXP 7.3: U35 and below
  • Quarterly Release: 2023.Q3

Resolution

  • This is fixed by LPS-191375.  
    • If on DXP 7.3, upgrade to U36 or higher, or request a hotfix with LPS-191375 fix through a Support ticket.
    • If on Quarterly Release, upgrade to 2023.Q3.1 or higher, or request a hotfix with LPS-191375 fix through a Support ticket.

Additional Information

 

 

Did this article resolve your issue ?

Legacy Knowledge Base