Skip to content

Password Reset with Valid But Non-Existent User ID Returns Unhandled 500 #9172

Description

@R0hit-Sriram

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I follow a password reset link that contains a valid base64-encoded but non-existent user ID, the server crashes with an unhandled DoesNotExist exception and I see the error message attached below:

User.DoesNotExist: User matching query does not exist.

What I expect is a redirect to the error page with a clear message that the reset link is invalid.

File: apps/api/plane/authentication/views/space/password_management.py — ResetPasswordSpaceEndpoint.post() calls User.objects.get(id=id) but only catches DjangoUnicodeDecodeError, leaving User.DoesNotExist unhandled

Steps to reproduce

  1. Construct a password reset URL with a valid base64-encoded UUID that doesn't correspond to any user
    1. Submit the reset form
    1. See 500 error instead of a redirect to the error page

Environment

Production

Browser

Google Chrome

Variant

Cloud

Version

v0.17.0-dev

Activity

  1. makeplane commented on May 30, 2026

    @makeplane
  2. OliverCordingl1 commented on Jun 10, 2026

    @OliverCordingl1

    I'm able to reproduce this

  3. added a commit that references this issue on Oct 22, 2026
    0df81ed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

planesync issues to Plane🐛bugSomething isn't working

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