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

Use joinsession if session id is used #62

Closed
wants to merge 4 commits into from

Conversation

dominikl
Copy link
Member

@dominikl dominikl commented May 4, 2022

Bugfix for ome/omero-insight#293 .

@jburel
Copy link
Member

jburel commented May 6, 2022

Screenshot 2022-05-06 at 09 25 07

insight connected using session key

@dominikl
Copy link
Member Author

dominikl commented May 6, 2022

👍 I have to add this case to the integration test too.

@jburel
Copy link
Member

jburel commented May 6, 2022

It works the first time but not the second time
SecurityViolation: 1 methods active.

Edit: actually it worked twice in a row then failed!

@dominikl
Copy link
Member Author

dominikl commented May 9, 2022

Integration test: ome/openmicroscopy#6319

@dominikl
Copy link
Member Author

Thanks @jburel . I think that should be all cases covered now. Should now somehow be tested together with the integration test.

@dominikl
Copy link
Member Author

Taking the discussions ome/openmicroscopy#6319 into account:
Instead of the proposed changes, shall I rather remove all calls to joinSession() and use only createSession()? This means all checks if a username is a session id can be removed too. But also implies, that if you want to login with a session id, you have to provide it as username and password. At the moment you only have to provide it as username (same for Insight).

@@ -366,69 +366,6 @@ public void disconnect() {
cacheService.shutDown();
}

/**
Copy link
Member

@jburel jburel May 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

insight has a method joinSession using the gateway method. It does not seem to be used but some changes will be required there too

Copy link
Member Author

@dominikl dominikl May 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like Insight uses it to try to reconnect after a connection loss. Indeed, will need a few changes in Insight too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot about that

@dominikl dominikl mentioned this pull request May 13, 2022
@dominikl dominikl closed this May 13, 2022
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

Successfully merging this pull request may close these issues.

2 participants