cancel
Showing results for 
Search instead for 
Did you mean: 

Need to trim namespace value in .xml files

0 Kudos

Need to trim namespace value in .xml files

Feature request from thaopw, posted on GitHub Oct 21, 2016

Preconditions

  1. Magento CE 2.1.x

Steps to reproduce

  1. Declare a namespace (includes a space character or newline) like value in .xml files tags

E.g:

  • <argument name="productDataProvider" xsi:type="object"> Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider </argument>

Expected result

  1. Similar declare (ignore newline, space in tags value) :

    <argument name="productDataProvider" xsi:type="object">Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider</argument>

And initialize a class "Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider" in the constructor

Actual result

  1. Magento System initialize an object have namespace like " Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider " and return an error below:

Class Magento\Catalog\Ui\DataProvider\Product\ProductDataProvider does not exist

1 Comment
Magento Team

This will be fixed in MAGETWO-60186 internal ticket. Also we decided to change xsd schema instead of trimming the values in run-time.