Issue
- We want to check if there are invalid references in all our web content articles and blog entries. There is a possibility to check web content articles with the class ModelValidatorUtil using a Groovy script.
com.liferay.portal.validation.ModelValidatorUtil.validate(journalarticle)
-
But there is no exception for invalid references with double dots like href="../somepath".
-
Is this a known bug?
-
And is there a possibility to find invalid references in all blog entries using a groovy script?
Environment
- DXP 7.2
Resolution
- This is a current product limitation
- At the moment, we have no existing scripts that could look for invalid references in blog entries and web content articles - because these cases are handled on a case-by-case basis.
- Web content articles are saved in an XML file where you can store various fields with various content. So checking for something requires a specific script tailored to the given web content article.
- The following options are at your disposal for this use case:
-
Open a Feature Request that will be evaluated by our Product Team.
- This is our official process that will allow our Product Team to assess the request.
- You can add your personal touch to the product by writing down the details in the description.
- Feel free to add further comments to discuss the remaining details with the team.
- Please note that the implementation of feature requests is subject to our developers' decision, and the new feature can only be added to our future Liferay releases.
-
Customization
Modifying Liferay's source code and developing your own solution to fit your business needs are always available to you. Please note that doing so may result in limited support for bugs that originate from modifying the code. -
Global Services Team
Involve our Global Services team by reaching out to your Liferay representative.