Opened 19 months ago
Closed 19 months ago
#2302 closed defect (fixed)
The Annotation importer may lack permissions to annotate files
Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|
Priority: | minor | Milestone: | BASE 3.19.9 |
Component: | coreplugins | Version: | |
Keywords: | Cc: |
Description
After the latest update importing annotations to files suddenly stopped working. The importer stopped with an error message: Permission denied: Not allowed to write File[id=....; name=....]
It turns out that the plug-in itself may request incorrect permissions due to a double request for file permissions. The first request is a READ request to be able to read data from the file. Then, it will request WRITE permission for all annotatable item types (including files). The resulting permission on file items depends on the order of the requested permissions which is unpredictable since they are stored in a Set.
The workaround is to manually change the permissions.
- Go to the Administrate -> Plug-ins & Extensions -> Plug-in definitions page and locate the Annotation importer plug-in.
- Open the Edit dialog and switch to the Permissions tab.
- Select the File entry in the Item types list
- Uncheck the Write checkbox in the Alway deny column
In 8145: