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

Bugfix: Weird behaviour after switching users (rebased onto dev_5_0) #2199

Merged
merged 2 commits into from Apr 11, 2014

Conversation

dominikl
Copy link
Member

This is the same as gh-2189 but rebased onto dev_5_0.


After switching users new service adapter instances were created but never passed on to the registry, so subsequent calls to the server picked up old service adapter instances, with the old OMEROGateway which still used the session created by the previous user.

Fix for: https://trac.openmicroscopy.org.uk/ome/ticket/12055
Should also fix other issues due to switching users

To Test: Follow the scenario mentioned in the ticket above;

After switching user new service adapater instances were created but never
passed on to the registry.
@dominikl
Copy link
Member Author

--rebased-from #2189

@dominikl dominikl restored the rebased/dev_5_0/projects_disappear branch March 24, 2014 14:23
@gusferguson
Copy link

@dominikl @jburel

Testing using OMERO.insight-5.0.0-175-2d7453e-ice33-b612-mac on gretzky.
Logged in as user 6 switched to read-only-1 - started to do an import-as user-3 - while this still under way started import-as user-9.
Insight crashed with loss of connection error alert.
Bug ticket: https://trac.openmicroscopy.org.uk/ome/ticket/12125
This was reproducible.
When repeated and I allowed the user-3 import-as to complete before starting the user-9 import-as then did not have crash.
Data imported as expected with correct ownership.
If import as user-6 (self) and then the second import-as done as user-9 this is successful and does not cause crash.
Data imported as expected with correct ownership.
If data is imported without creating new folder, but just as orphaned dataset from file name (i.e. default) then the crash does not occur and import-as takes place as expected.
So it seems to be the creation of the new folders that is causing the crash, even though the ownership of the projects and dat sets created on import-as are correctly for the import-as user.

Used "Switch user" to logout as user-9 and logged in as user-3.
In read-only-1 (user-3 is owner) could correctly import as self to own projects and datasets, but could also import to user-9's - I am not clear if this should be possible as owner of the group - I thought not but I may be misunderstanding the permissions.
The owner of the data imported into user-9s dataset remained user-3.

Used "Switch user" to logout as user-3 and logged in as user-2.
In read-only-1 (ordinary member) user-2 could not import into other user's projects or datasets - as expected.
Importing as user-2 into own project and dataset ownership was user-2 as expected.

Used "Switch user" to logout as user-2 and logged in as user-6.
Behaves as expected - can import as self and other users into read-annotate-1 and read-only-1 one with correct ownership as long as new projects are not created with concurrent import-as.
Again reproduced crash in read-annotate-1 with concurrent import-as.

Conclusion:
It looks as if the "Switch user" weirdness this PR is aimed at has been successfully addressed, but something has affected the functioning of import-as - can't tell if it is this PR.
I would suggest not merging until this is investigated further.

Screenshots:

omero insight 2

omero insight

omero insight 4

user-3 user-3 connected to gretzky openmicroscopy org uk

@jburel
Copy link
Member

jburel commented Apr 1, 2014

@dominikl, @gusferguson: sorry for not replying earlier. The problem highlighted by @gusferguson is not related to the changes introduced by this PR see gh-2225.

@joshmoore
Copy link
Member

i.e. "good to go"?

@joshmoore
Copy link
Member

ping

@dominikl
Copy link
Member Author

For me, yes, good to go. If there are no other objections?

@joshmoore
Copy link
Member

Perfect, thanks.

joshmoore added a commit that referenced this pull request Apr 11, 2014
…pear

Bugfix: Weird behaviour after switching users (rebased onto dev_5_0)
@joshmoore joshmoore merged commit c13d920 into ome:dev_5_0 Apr 11, 2014
@dominikl dominikl deleted the rebased/dev_5_0/projects_disappear branch May 19, 2014 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants