Task #12544 (closed)
Opened 10 years ago
Closed 10 years ago
Bug: Inter-group links may be created
Reported by: | mtbcarroll | Owned by: | mtbcarroll |
---|---|---|---|
Priority: | critical | Milestone: | 5.1.0-m3 |
Component: | General | Version: | 5.0.3 |
Keywords: | n.a. | Cc: | ux@…, bpindelski, bramalingam, cblackburn |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
- start with a fresh database
- run create_users script from omero-setup
- start up Insight
- log in as root
- create read-annotate group read-annotate with owner read-annotate-owner
- create private group private with owner private-owner
- create new user 'image-owner' who is a member of both read-annotate and private
- create new user 'tag-owner' who is a member of both read-annotate and private
- switch user to image-owner
- import two images into read-annotate
- switch user to tag-owner
- tag both image-owner's images with the same new tag
- switch user to image-owner
- (shell) as root run bin/omero hql --all 'select parent.details.group.id, child.details.group.id from ImageAnnotationLink' and observe that for each row the group ID in Col1 matches that in Col2
- right-click one of the images and move it to private
- (shell) as root run bin/omero hql --all 'select parent.details.group.id, child.details.group.id from ImageAnnotationLink' and recoil in horror
Note that our usual test user setup does not include a regular user who is in both a read-annotate and a private group.
https://github.com/openmicroscopy/openmicroscopy/pull/2401 has SQL for deleting existing inter-group annotations, though note that the set of annotatable classes has since changed.
#11779 should fix this bug, but it definitely seemed worth documenting.
Change History (6)
comment:1 Changed 10 years ago by jamoore
- Cc bpindelski bramalingam cblackburn added
- Milestone changed from 5.1.0 to 5.1.0-m3
- Priority changed from major to critical
comment:2 Changed 10 years ago by jamoore
- Owner changed from jamoore to mtbcarroll
Passing to mark along with 11752
comment:3 Changed 10 years ago by jburel
Keeping it m3 since the work is on-going and will probably be completed during that milestone.
comment:4 Changed 10 years ago by bpindelski
Test implemented in https://github.com/openmicroscopy/openmicroscopy/pull/3163.
comment:5 Changed 10 years ago by mtbcarroll
- Status changed from new to accepted
comment:6 Changed 10 years ago by mtbcarroll
- Resolution set to fixed
- Status changed from accepted to closed
Now fixed by https://github.com/openmicroscopy/openmicroscopy/pull/3228.
Makes sense. Perhaps the most critical thing to come from this will be a test then?