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

Connecting to multiple OMERO servers doesn't seem to work #112

Open
hinerm opened this issue Jul 13, 2022 · 1 comment
Open

Connecting to multiple OMERO servers doesn't seem to work #112

hinerm opened this issue Jul 13, 2022 · 1 comment
Labels

Comments

@hinerm
Copy link
Member

hinerm commented Jul 13, 2022

When running in Fiji with the "Import from OMERO" commands, given two OMERO database locations (server A and server B), attempting to open an image from server A and then an image from server B within the same JVM results in security errors such as "User doesn't have access" or "Group doesn't exist".

Interestingly, when the following steps happens:

  1. Open server A image
  2. Try to open server B image (fails but leaves a cached OMEROSession for server B)
  3. Manually closing the session created in (2)
  4. Opening an image from server B again

It works! But then trying to open a server A image using its originally cached OMEROSession fails with the aforementioned security exceptions.

This strongly suggests one of:

  • there is additional cached state on the OMERO side making caching sessions inadvisable
  • we're using the OMERO API incorrectly

Currently, the user workaround is to restart the application when needing to switch servers.

@hinerm hinerm added the bug label Jul 13, 2022
@joshmoore
Copy link
Member

In case it helps, the omero.client object wraps a single Ice.Connection matching exactly one session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants