#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.

  1. Go to the Administrate -> Plug-ins & Extensions -> Plug-in definitions page and locate the Annotation importer plug-in.
  2. Open the Edit dialog and switch to the Permissions tab.
  3. Select the File entry in the Item types list
  4. Uncheck the Write checkbox in the Alway deny column

Change History (1)

comment:1 by Nicklas Nordborg, 19 months ago

Resolution: fixed
Status: newclosed

In 8145:

Fixes #2302: The Annotation importer may lack permissions to annotate files

Note: See TracTickets for help on using tickets.