Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROI link fails if cross-group #400

Open
will-moore opened this issue Feb 17, 2022 · 0 comments
Open

ROI link fails if cross-group #400

will-moore opened this issue Feb 17, 2022 · 0 comments

Comments

@will-moore
Copy link
Member

As reported at ome/omero-metadata#62 (comment)
if the /iviewer/?roi=ID link refers to an ROI that is not in your default group, you get a Security Violation

/iviewer/roi/437462/image_data/ fails with:

File "/home/omero/workspace/OMERO-web/.venv3/lib64/python3.6/site-packages/omero_iviewer/views.py", line 468, in roi_image_data
    roi = conn.getQueryService().get('Roi', int(obj_id))

  File "/home/omero/workspace/OMERO-web/.venv3/lib64/python3.6/site-packages/omero/gateway/__init__.py", line 4879, in __call__
    return self.handle_exception(e, *args, **kwargs)

  File "/home/omero/workspace/OMERO-web/.venv3/lib64/python3.6/site-packages/omeroweb/webclient/webclient_gateway.py", line 2109, in handle_exception
    super(OmeroWebSafeCallWrapper, self).handle_exception(e, *args, **kwargs)

  File "/home/omero/workspace/OMERO-web/.venv3/lib64/python3.6/site-packages/omero/gateway/__init__.py", line 4876, in __call__
    return self.f(*args, **kwargs)

  File "/home/omero/workspace/OMERO-web/.venv3/lib64/python3.6/site-packages/omero_api_IQuery_ice.py", line 322, in get
    return _M_omero.api.IQuery._op_get.invoke(self, ((klass, id), _ctx))

omero.SecurityViolation: exception ::omero::SecurityViolation
{
    serverStackTrace = ome.conditions.SecurityViolation: Cannot read ome.model.roi.Roi:Id_437462
	at ome.security.basic.BasicACLVoter.throwLoadViolation(BasicACLVoter.java:300)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant