Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2575

Fix error message when get_metadata_infos() would likely fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 5.1.1
    • Component/s: Framework

      Description

      Sentry Issue: NUXEO-DRIVE-4X9

      IndexError: list index out of range
        File "nxdrive\manager.py", line 928, in get_metadata_infos
      
      IndexError: list index out of range
        File "nxdrive\gui\api.py", line 303, in show_metadata
        File "nxdrive\gui\application.py", line 1418, in show_metadata
        File "nxdrive\manager.py", line 910, in ctx_edit_metadata
        File "nxdrive\manager.py", line 930, in get_metadata_infos
      

      The code suggests there will always be an error if root_values is empty.

        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 - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m