Task #11374 (new)
Opened 11 years ago
Last modified 8 years ago
Bug: Passing group -1 throws API usage exception.
Reported by: | cblackburn | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Milestone: | Permissions |
Component: | Security | Version: | 4.4.8 |
Keywords: | n.a. | Cc: | java@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
The following Python tests:
integration.permissions.testSaveWithNegBadLink integration.permissions.testSaveWithNegOneExplicit
the tests fail for the following reason:
ApiUsageException: No valid permissions available! DUMMY permissions are not intended for copying. Make sure that you have not passed omero.group=-1 for a save without context
when they are expected not to. See full exception for one failure in comment below.
Change History (3)
comment:1 Changed 11 years ago by cblackburn
comment:2 Changed 11 years ago by jamoore
- Cc java@… added
- Milestone changed from OMERO-4.4.9 to OMERO-4.4.x
Since the actions are actually failing, pushing this along with #11375 out of 4.4.9. For reference, likely the only thing that has happened is that changes in the code path put a more stringent check before the previous check so that a new (perhaps less-specific) exception is being thrown. Though that's an API break, it's unclear when these happened, and by now, we may be relying on that new logic. This will require a brief discussion when the time comes.
comment:3 Changed 8 years ago by jamoore
- Milestone changed from 5.x to Permissions