Skip to content

Logout on browser reload (dsAuthInfo cookie is lost) #3963

@pnbecker

Description

@pnbecker

Describe the bug

When I build DSpace from the current main branch (as of Feb. 6th, 2025: backend: f4bac37 ; frontend: 8184acc) using the Dockerfiles and docker-compose files from the community, create an account, login via the webui and reload my browser, I'm being logged out.

To Reproduce

Steps to reproduce the behavior:

  1. clone the git repositories for backend and frontend.
  2. Run docker compose -p foo -f docker/docker-compose.yml build --pull --no-cache in the frontend source directory
  3. Run docker compose -p foo -f docker-compose.yml build --pull --no-cache in the backend source directory
  4. Start DSpace in the backend source repository: docker compose -p foo -f docker-compose.yml -f dspace/src/main/docker-compose/docker-compose-angular.yml up -d
  5. Start a shell in the backend container: docker compose -p foo -f docker-compose.yml -f dspace/src/main/docker-compose/docker-compose-angular.yml exec dspace /bin/bash and call /dspace/bin/dspace create-administrator to create an account
  6. open your browser and go to http://localhost:4000
  7. login with the freshly created account
  8. acknowldege the enduser agreement
  9. Hard reload in your browser (ctrl+R or reload button)
  10. see that the navbar is gone and the button to open the dropdown to login is shown.

Expected behavior

When I login into dspace and reload in the browser, I should still be logged in.

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions