Legacy Knowledge Base
公開されました Jul. 2, 2025

Web Content Fails to Publish or Save When a URL Contains Unencoded Characters

Written By

Madeleine Clay

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

  • If file entry validation is enabled and a web content article links to a Document Library file through an unencoded URL containing special characters (such as ' &apos; ] } ) > < \n | ? " &quot;  ), publishing fails due to the inability to validate the URLs.
  • The same failure occurs when saving web content whose HTML source links to a Document Library file with an unencoded delimiter character in its URL, such as a closing parenthesis ). The error is similar to this:

    Cannot validate the referenced document because it is not found with the following parameters: {groupId=[...], title=[...], folderId=[...], endPos=[...]}
    

Environment

  • Liferay DXP 7.3+

Resolution

  • You can resolve this in one of two ways:
    • Encode the special characters in the link's URL in the web content's HTML source. For example, replace a closing parenthesis ) with %29.
    • Alternatively, turn off file entry validation. Liferay then publishes web content containing unencoded URLs without validating the links.
      To turn off validation, navigate to Control Panel > Configuration > System Settings > Platform > Infrastructure > Import/Export and uncheck the Validate File Entries box.
      validateFileEntries.png

Additional Information

  • This failure is expected behavior. When you publish web content, Liferay validates links that point to the Document Library. It parses each URL and treats certain characters, called reference stop strings, as delimiters. Since an unencoded delimiter stops the parsing early, this validation runs on an incomplete URL and fails.
Did this article resolve your issue ?

Legacy Knowledge Base