Details
-
Bug
-
Resolution: Fixed
-
Critical
-
4.4.3
-
Yes
Description
It is possible to create achors with invalid characters
Steps to reproduce:
- create an article
- In an richtest field add some random text
- select the text and click anchor icon
- enter the anchor name some space
- Click Publish
Expected behavior : The article is published:
Actual behavior : You'll get invalidation error : Validation of XML content failed: Error in 0:0: Element section has extra content: ezembed
Spaces are not allowed in id's, so the editor should not accept them. The editor in Ibexa DXP 3.3 had validation of this, see screenshot
Also, if you click "Save" button instead of "Publish", Ibexa DXP will store the content in the database without validation, but will not be able to reload it again (due to the validation errors ) and the content will end up in status limbo
Example of the xhtml which editor sends Ibexa DXP :
<section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"><p id="some space">some text here with anchor</p></section>
Which gets converted to docbook like this:
<?xml version="1.0" encoding="UTF-8"?> <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para xml:id="some space">some text here with anchor</para></section>
Designs
Attachments
Issue Links
- testing discovered
-
IBX-6134 Richtext: Possible to create anchor with colon character
- Closed
-
IBX-6136 Richtext: Quotation marks cause error when creating anchor
- Closed
-
IBX-6148 Richtext: Console error when submitting empty anchor
- Closed
-
IBX-6149 Richtext: Anchor is duplicated when entering newline
- Closed
-
IBX-6151 Richtext: Unique validation triggered when revisiting the same anchor
- Closed