-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 9.10, 10.1
-
Component/s: Web UI
If one defines a vocabulary based on a custom schema whose name isĀ myCustomDirectory, then one has to define an element whose name will be nuxeo-myCustomDirectory-edit-layout.html to be able to manage the vocabulary.
But it goes against Polymer standard and it will produce the following exception when trying to access to the vocabulary in the WebUI:
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': "nuxeo-myCustomDirectory-edit-layout" is not a valid custom element name at CustomElementRegistry.value (http://localhost:8080/nuxeo/ui/bower_components/webcomponentsjs/custom-elements-es5-adapter.js:4:902) at Function.window.Polymer._polymerFn (http://localhost:8080/nuxeo//ui/elements.html:10838:20) at window.Polymer (http://localhost:8080/nuxeo//ui/elements.html:318:27) at http://localhost:8080/nuxeo//ui/directory/myCustomDirectory/nuxeo-myCustomDirectory-edit-layout.html:91:5
The problem may come from nuxeo-vocabulary-management element and this specific line
this.$.directory.path = '/directory/' + this._selectedEntry.directoryName;
where the path should be changed to lower case.