Details
-
Bug
-
Resolution: Fixed
-
High
-
5.4.7
-
None
Description
While creating a content object it's possible to have error 500 caused by the input parser, returning the following error:
CRITICAL - Uncaught PHP Exception DOMException: "Invalid Character Error" at /var/www/ezpublish54/ezpublish_legacy/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php line 1528 Context: {"exception":"Object(DOMException)"}
Steps to reproduce:
- Set an eZ Publish 5.4.7 environment on dev mode
- Access the administration backed
- Start creating a new folder
- Disable the Online Editor ()
- Add the following on the Summary or Description field <p style="-webkit-text-stroke-width: 1px;">Test</p>
- Click the Enable editor button
- When the page reloads force a page refresh (Ctrl + R) and resend the post data
You will get the error described.
Stack trace:
[1] DOMException: Invalid Character Error at n/a in /var/www/ezpublish54/ezpublish_legacy/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php line 1528 at DOMElement->setAttribute('-webkit-text-stroke-width', '1px') in /var/www/ezpublish54/ezpublish_legacy/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php line 1528 at eZOEInputParser::elementStylesToAttribute(object(DOMElement)) in /var/www/ezpublish54/ezpublish_legacy/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php line 709 at eZOEInputParser->transformStyles(object(DOMElement), null) in line at call_user_func_array(array(object(eZOEInputParser), 'transformStyles'), array(object(DOMElement), null)) in /var/www/ezpublish54/ezpublish_legacy/kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php line 1133 at eZXMLInputParser->callOutputHandler('initHandler', object(DOMElement), null) in /var/www/ezpublish54/ezpublish_legacy/kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php line 778 at eZXMLInputParser->processSubtree(object(DOMElement), null) in /var/www/ezpublish54/ezpublish_legacy/kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php line 805 at eZXMLInputParser->processSubtree(object(DOMElement), null) in /var/www/ezpublish54/ezpublish_legacy/kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php line 767 at eZXMLInputParser->performPass2() in /var/www/ezpublish54/ezpublish_legacy/kernel/classes/datatypes/ezxmltext/ezxmlinputparser.php line 261 at eZXMLInputParser->process('<p style="-webkit-text-stroke-width: 1px;">Test</p>', true) in /var/www/ezpublish54/ezpublish_legacy/extension/ezoe/ezxmltext/handlers/input/ezoeinputparser.php line 207 at eZOEInputParser->process('<p style="-webkit-text-stroke-width: 1px;">Test</p>') in /var/www/ezpublish54/ezpublish_legacy/extension/ezoe/ezxmltext/handlers/input/ezoexmlinput.php line 577 at eZOEXMLInput->validateInput(object(eZHTTPTool), 'ContentObjectAttribute', object(eZContentObjectAttribute)) in /var/www/ezpublish54/ezpublish_legacy/kernel/classes/datatypes/ezxmltext/ezxmltexttype.php line 256 at eZXMLTextType->validateObjectAttributeHTTPInput(object(eZHTTPTool), 'ContentObjectAttribute', object(eZContentObjectAttribute)) in /var/www/ezpublish54/ezpublish_legacy/kernel/classes/ezcontentobjectattribute.php line 548 at eZContentObjectAttribute->validateInput(object(eZHTTPTool), 'ContentObjectAttribute', array('unvalidated-attributes' => array(), 'validated-attributes' => array()), array('prefix-name' => false, 'skip-isRequired' => true)) in /var/www/ezpublish54/ezpublish_legacy/kernel/classes/ezcontentobject.php line 2418 at eZContentObject->validateInput(array(object(eZContentObjectAttribute), object(eZContentObjectAttribute), object(eZContentObjectAttribute), object(eZContentObjectAttribute), object(eZContentObjectAttribute), object(eZContentObjectAttribute), object(eZContentObjectAttribute)), 'ContentObjectAttribute', false, array('skip-isRequired' => true)) in /var/www/ezpublish54/ezpublish_legacy/kernel/content/attribute_edit.php line 265 at include('/var/www/ezpublish54/ezpublish_legacy/kernel/content/attribute_edit.php') in /var/www/ezpublish54/ezpublish_legacy/kernel/content/edit.php line 869 at include('/var/www/ezpublish54/ezpublish_legacy/kernel/content/edit.php') in /var/www/ezpublish54/ezpublish_legacy/lib/ezutils/classes/ezprocess.php line 46 at eZProcess->runFile(array('ObjectID' => '132', 'EditVersion' => '1', 'EditLanguage' => 'eng-GB', 'FromLanguage' => null, 'UserParameters' => array(), 'Module' => object(eZModule), 'ModuleName' => 'content', 'FunctionName' => 'edit', 'Parameters' => array('132', '1', 'eng-GB')), 'kernel/content/edit.php', true) in /var/www/ezpublish54/ezpublish_legacy/lib/ezutils/classes/ezprocess.php line 21 at eZProcess::run('kernel/content/edit.php', array('ObjectID' => '132', 'EditVersion' => '1', 'EditLanguage' => 'eng-GB', 'FromLanguage' => null, 'UserParameters' => array(), 'Module' => object(eZModule), 'ModuleName' => 'content', 'FunctionName' => 'edit', 'Parameters' => array('132', '1', 'eng-GB')), true) in /var/www/ezpublish54/ezpublish_legacy/lib/ezutils/classes/ezmodule.php line 1797 at eZModule->run('edit', array('132', '1', 'eng-GB'), false, array()) in /var/www/ezpublish54/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php line 815 at ezpKernelWeb->dispatchLoop() in /var/www/ezpublish54/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php line 344 at ezpKernelWeb->run() in /var/www/ezpublish54/ezpublish_legacy/kernel/private/classes/ezpkernel.php line 53 at ezpKernel->run() in /var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php line 118 at eZ\Publish\Core\MVC\Legacy\Kernel->run() in /var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Controller/LegacyKernelController.php line 106 at eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController->indexAction() in line at call_user_func_array(array(object(LegacyKernelController), 'indexAction'), array()) in /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 144 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 64 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 69 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in /var/www/ezpublish54/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 184 at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) in /var/www/ezpublish54/web/index.php line 77