Trying to load item with ID=1 as parent item when inheriting annotations
As the root or admin user create two items, one being the parent of the other. For example one raw bioassay and one array design.
Create a user account and share the raw bioassay with write permission to that user but not the array design.
Log in as the other user and go to the edit dialog for the raw bioassay. The "Array design" field should be disabled and display 'denied'.
Switch to the "Annotations" tab and click on "Inherit". An error message is displayed:
Item not found: ArrayDesign[id=1]
The ID of the actual array design is NOT 1. The error message is a caused by the fact that when access is denied '-1' is used as the ID which is then passed on without the negative sign to the "Inherit" dialog which tries to load a non-existing item.
This issue is probably present in all places where annotations can be inherited.
Since negative values are also used for 'not modified', we can't use '-1' for 'denied' (there may be an item with ID=1!).