Reproductible on nightly.nuxeo.com.
- create a folder
- create a note inside it
- trash the folder
- go to the trash
- navigate to the trashed folder
- observe the button (plus sign) is available for creating documents (see possiblecreation.png)
- create a note
- observe the note is neither visible in the trashed folder or the untrashed workspace parent
- now untrash the folder
- observe the created note is now visible
This is an inconsistent behavior. The document creation button should not be available when browsing trashed documents to avoid such issues. Maybe this should be dealt à the core level to prevent any document creation when the parent document has the ecm:isTrashed flag set.
I let the platform decide on what is best.