Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 48,748
    • Issues 48,748
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,568
    • Merge requests 1,568
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #25361
Closed
Open
Issue created Nov 21, 2018 by sashk@sashk

Login redirects to previous location do not work when multiple tabs are opened and original session is lost

Summary

Gitlab has serious data loss bug. I've been in the middle of work, with about 20 or so windows and tabs with Gitlab open and accidentally quit my browser. Upon re-launch all windows were showing login form. None of them redirected back to the previously opened location after successful login.

Steps to reproduce

  1. User opens multiple windows, tabs with Gitlab content.
  2. User uses 2fa.
  3. User either closes browser and opens it several days later; or user logged into Gitlab more than week ago and just restarts browser.
  4. All Gitlab windows will now show login form.
  5. After logging in, user will be redirected to the /dashboard/activity URL of the instance.
  6. All previously opened tabs/windows will observe this behavior.
  7. There is no way to restore Gitlab's windows which were open: Gitlab forces logout on a first reload of the page.

This is serious data loss bug, which I can reproduce on Gitlab.com as well as my instance of Gitlab EE.

What is the current bug behavior?

Gitlab forces re-login and does not redirect to the previous location.

What is the expected correct behavior?

Gitlab should prevent data loss — if login is required — after successful login, redirect back to the previous location.

Edited Jul 24, 2021 by Stan Hu
Assignee
Assign to
Time tracking