Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1466

User schema: the vocabulary ID is displayed instead of the label

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.x
    • Fix Version/s: 2.4.59, 3.0.11
    • Component/s: UI
    • Release Notes Summary:
      The "User" screen handles "Vocabulary" properties and displays vocabulary entry label when possible.
    • Backlog priority:
      700
    • Team:
      UI
    • Sprint:
      UI - 2021-13, UI - 2022-02, UI Cooldown - 2021-13, UI Cooldown - 2022-02

      Description

       Repro steps: 

      To help with the repro, just drop the attached jar into nxserver/plugins and restart Nuxeo. This jar corresponds to the tag "ENV-FOR-WEBUI-592", branch feature/ged-administrative-scp, in my cchampain's Sandbox.

      1. In Studio
        1. Create a vocabulary
        2. Create a custom user schema with a field referencing the vocabulary in step 1
      2. In a running Nuxeo local instance
        1. Create a new user (and refresh the page)
        2. Edit the user

       
      Outcome: 

      In the user View, the vocabulary ID is displayed instead of the label.

      Expected behavior:

      The vocabulary label should be displayed.

      Observations / Suggested fix:

      We found out that the request header

      -H 'fetch-document: properties'
      

      is missing from the GET request headers for

      GET http://localhost:8080/nuxeo/api/v1/user/<username>

      When this header is added to the GET request, the response contains the correct entity type for the vocabulary field.

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 20 minutes
                  3h 20m