Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Oct 18, 2024

What do these changes do?

After logging in, the frontend creates a client_session_id used by the websocket and some projects related request headers. This client_session_id is kept in the sessionStorage of the borwser.

If somehow this one gets deleted or disappears, whenever it's required, the frontend will create a new one that will be only used by the projects related requests, the websocket after reconnecting it will keep the previous client_session_id. This misalignment makes the Garbage Collector kill services that are started with this new session id.

This PR fixes this scenario by checking (and reusing) if the websocket has a client_session_id before creating a new one.

ReuseSocketSessionId

Related issue/s

How to test

Dev-ops checklist

@odeimaiz odeimaiz self-assigned this Oct 18, 2024
@sonarqubecloud
Copy link

@odeimaiz odeimaiz added bug buggy, it does not work as expected a:frontend issue affecting the front-end (area group) labels Oct 18, 2024
@odeimaiz odeimaiz added this to the MartinKippenberger milestone Oct 18, 2024
@odeimaiz odeimaiz enabled auto-merge (squash) October 18, 2024 14:48
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

thanks!

Copy link
Member

@mguidon mguidon left a comment

Choose a reason for hiding this comment

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

Great. Lets see if this helps.

@odeimaiz odeimaiz changed the title 🐛 [Frontend] Reuse client_session_id from socket's query instead of creating a new one 🐛 [Frontend] Reuse client_session_id from socket's query instead of creating a new one Oct 18, 2024
Copy link
Contributor

@jsaq007 jsaq007 left a comment

Choose a reason for hiding this comment

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

👍🏼

@odeimaiz odeimaiz merged commit c13e822 into ITISFoundation:master Oct 21, 2024
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:frontend issue affecting the front-end (area group) bug buggy, it does not work as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rogue Garbage Collector

4 participants