Skip to content

GitLab OAuth Callback Crashes for All Space App Users — base_host Variable Shadowing #9164

Closed

Description

@R0hit-Sriram

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I complete GitLab OAuth login in the space app, the callback crashes with a TypeError and I see the error message attached below:

TypeError: 'str' object is not callable

What I expect is to be redirected to the dashboard after successful GitLab authentication.

File: apps/api/plane/authentication/views/space/gitlab.py — same shadowing pattern as the GitHub bug: base_host = request.session.get("host") overwrites the imported function.

Steps to reproduce

  1. Go to the space app login page
  2. Click "Continue with GitLab"
  3. Authorize the application on GitLab
  4. See 500 error on callback — user is never authenticated

Environment

Production

Browser

Google Chrome

Variant

Cloud

Version

v0.17.0-dev

Activity

  1. added a commit that references this issue on Nov 3, 2026
    618d0eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

plane🐛bug

Type

Fields

Edition

None yet

Version

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions