Task #10618 (new)
Opened 11 years ago
Last modified 10 years ago
Bug: No rdefs for SPW import via cli — at Initial Version
Reported by: | wmoore | Owned by: | jamoore |
---|---|---|---|
Priority: | major | Milestone: | OMERO-4.4.8 |
Component: | Import | Version: | n.a. |
Keywords: | n.a. | Cc: | cxallan, jburel, ux@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
If we import SPW data via the command line, no rendering defs are generated, meaning that non-owners in private or read-only groups cannot see thumbnails.
I believe this bug exists for dev_4_4 and develop.
E.g. Import SPW data as a regular member of a private group:
$ omero import ~/Documents/biology-data/SPW/mias-frans/siRNA_PRIM1_03102008/ Using session eed7e559-ddb7-48aa-924a-3b3428765707 (will@localhost:4064). Idle timeout: 10.0 min. Current group: private 2013-03-27 14:27:25,730 0 [ main] INFO ome.formats.importer.ImportConfig - OMERO Version: 5.0.0-alpha1-DEV-ice34 ...
Then try to get the thumbnail as 'root'
... conn.SERVICE_OPTS.setOmeroGroup(-1) i = conn.getObject("Image", 24) jpeg = i.renderImage(None, None) jpeg.show() # PIL Image shown tb = i.getThumbnail() WARNING:omero.gateway:ReadOnlyGroupSecurityViolation on <class 'omero.gateway.OmeroGatewaySafeCallWrapper'> to <83c7cf1a-faa7-4975-89c8-e4328bbe1543omero.api.ThumbnailStore> getThumbnail((object #0 (::omero::RInt) { _val = 64 }, object #0 (::omero::RInt) { _val = 64 }, <ServiceOptsDict: {'omero.session.uuid': '43ad1d91-0f0d-43dc-8bad-1b2695cb6702', 'omero.group': '5', 'omero.client.uuid': '17c468ea-b24d-44a0-92e7-3474ce6cc066'}>), {}) Traceback (most recent call last): File "/Users/will/Desktop/OMERO/dist/lib/python/omero/gateway/__init__.py", line 3455, in __call__ return self.f(*args, **kwargs) File "/Users/will/Desktop/OMERO/dist/lib/python/omero_api_ThumbnailStore_ice.py", line 179, in getThumbnail return _M_omero.api.ThumbnailStore._op_getThumbnail.invoke(self, ((sizeX, sizeY), _ctx)) ReadOnlyGroupSecurityViolation: exception ::omero::ReadOnlyGroupSecurityViolation { serverStackTrace = ome.conditions.ReadOnlyGroupSecurityViolation: Cannot link to ome.model.core.Pixels:Id_23 Current user (root) is an admin or the owner of the private group (private=rw----). It is not allowed to link to users' data. at ome.security.basic.OmeroInterceptor.evaluateLinkages(OmeroInterceptor.java:464) at ome.security.basic.OmeroInterceptor.onSave(OmeroInterceptor.java:154) ...... at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:643) at java.lang.Thread.run(Thread.java:680) serverExceptionClass = ome.conditions.ReadOnlyGroupSecurityViolation message = Cannot link to ome.model.core.Pixels:Id_23 Current user (root) is an admin or the owner of the private group (private=rw----). It is not allowed to link to users' data. }
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.