The user can login multiple times with the same session #55

Closed
opened 2026-04-07 13:59:21 +02:00 by lars.winzer · 5 comments
lars.winzer commented 2026-04-07 13:59:21 +02:00 (Migrated from git.scicore.unibas.ch)

Bug Report

Environment

Summary

The is able to login multiple times with the same session. Leading to unpredictable behaviour.

Expected Behavior

The server should respond with a ErrorResponse to the second LOGIN request, informing the user that he is already logged in.

Actual Behavior

Another user is created and the user is successfully logged in.

Steps to Reproduce

  1. Establish connection to server
  2. Send first login request
  3. Send second login request
  4. The client recieved a OK for both requests

Stack Trace / Error Message

None

Possible Cause / Notes

Its not checked, if the Session is already associated with a user object.

Checklist

  • I reproduced the problem using the steps above
  • I searched documentation for relevant information
  • I added relevant labels
## Bug Report <!--The reccommended type is: Issue--> ### Environment - **Branch & Commit:** main - 78e0599182b7788488dbe844061592005322c212 ### Summary The is able to login multiple times with the same session. Leading to unpredictable behaviour. ### Expected Behavior The server should respond with a ErrorResponse to the second LOGIN request, informing the user that he is already logged in. ### Actual Behavior Another user is created and the user is successfully logged in. ### Steps to Reproduce 1. Establish connection to server 2. Send first login request 3. Send second login request 4. The client recieved a OK for both requests ### Stack Trace / Error Message ``` None ``` ### Possible Cause / Notes Its not checked, if the Session is already associated with a user object. ### Checklist - [x] I reproduced the problem using the steps above - [x] I searched documentation for relevant information - [x] I added relevant labels
lars.winzer commented 2026-04-07 14:15:06 +02:00 (Migrated from git.scicore.unibas.ch)

assigned to @lars.winzer

assigned to @lars.winzer
lars.winzer commented 2026-04-07 14:15:31 +02:00 (Migrated from git.scicore.unibas.ch)

created branch fix/55-user-can-login-multiple-times to address this issue

created branch [`fix/55-user-can-login-multiple-times`](/cs108-fs26/Gruppe-13/-/compare/main...fix%2F55-user-can-login-multiple-times) to address this issue
lars.winzer commented 2026-04-07 14:23:45 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in merge request !84

mentioned in merge request !84
lars.winzer commented 2026-04-07 14:25:12 +02:00 (Migrated from git.scicore.unibas.ch)

mentioned in commit 06c5e5ab83

mentioned in commit 06c5e5ab83b6ab3eb4b1ab3a3b9b211d3fb6b6c7
lars.winzer (Migrated from git.scicore.unibas.ch) closed this issue 2026-04-07 14:25:13 +02:00
lars.winzer commented 2026-04-07 14:37:34 +02:00 (Migrated from git.scicore.unibas.ch)

added 10m of time spent at 2026-04-07 12:00:00 +0200

added 10m of time spent at 2026-04-07 12:00:00 +0200
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: University-of-Basel-Studentprojects/Programmierprojekt#55