-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2021
-
Component/s: Nuxeo Drive
-
Release Notes Summary:Nuxeo Drive now adapts Note subtypes
-
Tags:
-
Backlog priority:750
-
Sprint:nxplatform #92
-
Story Points:3
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