Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error is thrown when a cookie cannot be decoded even if it is one not used by payload #10591

Open
powerpaul17 opened this issue Jan 15, 2025 · 0 comments
Labels
status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@powerpaul17
Copy link

Describe the Bug

The code in

const decodedValue = decodeURI(encodedValue)
throws an error if a cookie cannot be decoded. I have Authelia set up and therefore an additional cookie is sent with each request. This cookie cannot be decoded by the function in the code. Therefore an error is thrown and the administration interface is unusable. Probably the API too.

Link to the code that reproduces this issue

const decodedValue = decodeURI(encodedValue)

Reproduction Steps

There is no specific setup which triggers this issue, so I cannot provide a "reproduction".

  1. Try to login into payload administration section.
  2. Does not login, server shows error thrown in
    const decodedValue = decodeURI(encodedValue)

Which area(s) are affected? (Select all that apply)

Not sure

Environment Info

Payload: 3.9.0,
Node.js: 22.6.0
Next.js: 15.0.4
@powerpaul17 powerpaul17 added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant