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

Make Drive adapt types which extend Note

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2021
    • Fix Version/s: 2023.1, 2021.41
    • Component/s: Nuxeo Drive
    • Release Notes Summary:
      Nuxeo Drive now adapts Note subtypes
    • Backlog priority:
      750
    • Sprint:
      nxplatform #92
    • Story Points:
      3

      Description

      Since NXP-25841, DefaultFileSystemItemFactory checks explicitely the type "Note" when no blob provider matches a FileSystemItem blob.

      It prevents a document whose type extends Note to be adapted as a FileSystemItem and the code returns null, which causes this exception in Drive client

       2023-06-16 12:53:39 11675 140191490635456 ERROR    nxdrive.engine.processor Unknown error
      Traceback (most recent call last):
        File "nxdrive/objects.py", line 100, in from_dict
      TypeError: 'NoneType' object is not subscriptableDuring handling of the above exception, another exception occurred:Traceback (most recent call last):
        File "nxdrive/engine/processor.py", line 345, in _execute
        File "nxdrive/engine/processor.py", line 242, in _handle_doc_pair_sync
        File "nxdrive/engine/processor.py", line 992, in _synchronize_locally_created
        File "nxdrive/client/remote_client.py", line 769, in stream_file
        File "nxdrive/objects.py", line 105, in from_dict
      nxdrive.exceptions.DriveError: This item is missing mandatory information: None
      

       

      Expected behavior: the code should check if the document has "Note" among its type/supertypes

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: