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

Fix version format when content is `null`

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.33, 2.4.0, 3.0.0-SNAPSHOT
    • Fix Version/s: 2.2.34, 2.4.11, 3.0.0
    • Component/s: UI
    • Release Notes Summary:
      The version format handles the case where the value is null.
    • Backlog priority:
      600
    • Team:
      GANG
    • Sprint:
      nxGang Sprint 11.1.13
    • Story Points:
      1

      Description

      There is an edge case that formatVersion method does not take into account.
      In some documents major and minor versions can be `null` (see support ticket).

      We should had that exception to the method to not present anything in these situations.

      Reproduction steps

      • create a new document type on a studio project with facet folderish.
      • this will include the UID schema (cannot remove in studio afaik)
      • on web ui, create some documents of this type.
      • select them and copy to any place.
      • select the "version" on the data table field list
        =!> you get `null.null`

      Video
      https://jira.nuxeo.com/secure/attachment/82089/82089_2019-06-14_11-03-08.mp4

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 30 minutes
                  30m