IDR / deployment

Deployment infrastructure for the Image Data Resource
https://idr.openmicroscopy.org/about/deployment.html
BSD 2-Clause "Simplified" License
13 stars 14 forks source link

Bump OMERO.web version to 5.9.1 #322

Closed sbesson closed 3 years ago

sbesson commented 3 years ago

See https://www.openmicroscopy.org/2021/03/17/omero-web-5.9.0.html Also bumps OMERO.iviewer to the latest patch release

sbesson commented 3 years ago

Deployed on pilot-idr0072

sbesson commented 3 years ago

Just realized on a newly deployed pilot that the newest OMERO.iviewer is broken.

Traceback (most recent call last):

  File "/opt/omero/web/venv3/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)

  File "/opt/omero/web/venv3/lib64/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)

  File "/opt/omero/web/venv3/lib64/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/opt/omero/web/venv3/lib64/python3.6/site-packages/omeroweb/decorators.py", line 538, in wrapped
    retval = f(request, *args, **kwargs)

  File "/opt/omero/web/venv3/lib64/python3.6/site-packages/omero_iviewer/views.py", line 91, in index
    max_bytes = c.getConfigValue('omero.pixeldata.max_projection_bytes')

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

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

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

  File "/opt/omero/web/venv3/lib64/python3.6/site-packages/omero_api_IConfig_ice.py", line 308, in getConfigValue
    return _M_omero.api.IConfig._op_getConfigValue.invoke(self, ((key, ), _ctx))

omero.SecurityViolation: exception ::omero::SecurityViolation
...

This is the combined result of the new functionality introduced in https://github.com/ome/omero-iviewer/pull/349 which consumes a server property introduced in OMERO 5.6.1 combined with the fact that the OMERO.server deployed on IDR is still 5.6.0.

Downgrading to omero-iviewer 0.10.1 fixes the issue.

There are two potential actions:

will-moore commented 3 years ago

Seems it would be useful for OMERO.iviewer to be compatible with 5.9.0 server. I'll create an issue...