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

Fix 'nuxeo-tag-suggestion' element when tag service does not create the provided tag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.0
    • Fix Version/s: 2.4.72, 3.1.x, 3.0.21
    • Component/s: UI
    • Release Notes Summary:
      nuxeo-tag-suggestion handles single-space tags
    • Backlog priority:
      400
    • Sprint:
      UI - 2023-3, UI COOLDOWN - 2023-2

      Description

      The tag service sanitizes the tag before adding it. In some cases, the sanitized tag comes up as an empty string (e.g. a tag containing blank spaces only), therefore does not get created. The problem is the 'nuxeo-tag-suggestion' element adds the un-sanitized tag anyway in its placeholder.

      How to reproduce:

      • navigate to a document/asset
      • enter a single space in the Tags element (and press the + in the drop down to add it)

      Actual result: the single-space tag is rendered in the list of tags associated to the document
      Expected result: The single-space tag does not get added to the list of tags associated to the document as the *automation operation Services.TagDocument's response does not contain the single-space tag

      Refreshing the page display the right list of tags, without the entered single-space tag.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 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