-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, Master
-
Fix Version/s: 7.0.0 DXP FP93, 7.0.10.14 DXP SP14, 7.0.X, 7.1.10 DXP FP18, 7.1.10.5 SP5, 7.1.X, Master
-
Branch Version/s:7.1.x, 7.0.x
-
Backported to Branch:Committed
-
Story Points:0.25
-
Fix Priority:3
-
Git Pull Request:
Description
When validating URLs inside of text (such as in a web content article), the validator just grabs any URL it finds inside of an "href" tag and tries to validate it. The problem with this is that the href tag could be inside a comment and thus should not need to be validated.
Steps to reproduce
- Start up Liferay and log in as the admin user
- Navigate to Liferay > Content > Web Content > + (Add Button) > Basic Web Content.
- Switch the "Content" field to Code view.
- Paste the following HTML into the "Content" field.
<p>This is a test <!--<a href="http://localhost:8080/web/guest/link-to-page-that-does-not-exist">Link</a>--></p>
- Click on the Publish button
Expected Result: The web content article would be published successfully, since it does not contain any problematic links that any user can access when they view the article.
Actual Result: The article fails to publish with a " The content references a missing page." error.
- causes
-
LPS-113435 StackOverflowError can be thrown when editing web content with long html comment
- Closed