Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25105

Make nuxeo-vocabulary-management handle directory schemas with uppercase characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10, 10.1
    • Fix Version/s: 9.10-HF10, 10.2
    • Component/s: Web UI
    • Release Notes Summary:
      The nuxeo-vocabulary-management element handles directory schemas with uppercase characters.
    • Tags:
    • Backlog priority:
      500
    • Sprint:
      nxGang Sprint 10.2.6
    • Story Points:
      1

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days
                2d