🐛 Bug Report: can't set language #188

Closed
opened 2025-10-07 00:05:13 +03:00 by OVERLORD · 10 comments
Owner

Originally created by @ilyakonovalenko on GitHub.

Reproduction steps

Change language on the /settings/account

Expected behavior

Language changed.

Actual Behavior

Language is not getting changed. An error: Request failed with status code 403

Version and Environment

v. 1.1.0

Log Output

No response

Originally created by @ilyakonovalenko on GitHub. ### Reproduction steps Change language on the `/settings/account` ### Expected behavior Language changed. ### Actual Behavior Language is not getting changed. An error: `Request failed with status code 403` ### Version and Environment v. 1.1.0 ### Log Output _No response_
OVERLORD added the bug label 2025-10-07 00:05:13 +03:00
Author
Owner

@ilyakonovalenko commented on GitHub:

I suspect that the issue could be caused by something that is in front of Pocket ID like a reverse proxy.

The instance is behind nginx, so it could be a reason, I will check.

Regarding the default language, I don't think this is necessary because it automatically tries to use the language your computer is set to. Does this not work?

No, it does not work. The interface is in English but both my systems are in Russian. Demo instance on the Pocket ID website is in English as well.

@ilyakonovalenko commented on GitHub: > I suspect that the issue could be caused by something that is in front of Pocket ID like a reverse proxy. The instance is behind nginx, so it could be a reason, I will check. > Regarding the default language, I don't think this is necessary because it automatically tries to use the language your computer is set to. Does this not work? No, it does not work. The interface is in English but both my systems are in Russian. Demo instance on the Pocket ID website is in English as well.
Author
Owner

@ilyakonovalenko commented on GitHub:

The user is admin and the instance is not using LDAP. The issue is happening right after initial setup, so I used docker compose to setup, that's it. As for the other values - yes, all other settings are changed just fine.

Another thing is default language for the instance. I don't see any way to set default language :-(

@ilyakonovalenko commented on GitHub: The user is admin and the instance is not using LDAP. The issue is happening right after initial setup, so I used docker compose to setup, that's it. As for the other values - yes, all other settings are changed just fine. Another thing is default language for the instance. I don't see any way to set default language :-(
Author
Owner

@kmendell commented on GitHub:

@stonith404 Maybe we add a ENV vriable that would allow setting the globa language? similar to how the other UI config is overridden?

@kmendell commented on GitHub: @stonith404 Maybe we add a ENV vriable that would allow setting the globa language? similar to how the other UI config is overridden?
Author
Owner

@stonith404 commented on GitHub:

I suspect that the issue could be caused by something that is in front of Pocket ID like a reverse proxy.

Could you please copy the PUT request to /api/users/me as a curl command then append the -v flag to the copied command, execute it in the terminal and share the output? Make sure to remove any sensitive data.

Image

Regarding the default language, I don't think this is necessary because it automatically tries to use the language your computer is set to. Does this not work?

@stonith404 commented on GitHub: I suspect that the issue could be caused by something that is in front of Pocket ID like a reverse proxy. Could you please copy the `PUT` request to `/api/users/me` as a curl command then append the `-v` flag to the copied command, execute it in the terminal and share the output? Make sure to remove any sensitive data. ![Image](https://github.com/user-attachments/assets/1c3bb760-426f-4a0c-88f2-67ab6855ef23) Regarding the default language, I don't think this is necessary because it automatically tries to use the language your computer is set to. Does this not work?
Author
Owner

@stonith404 commented on GitHub:

Can you share some more information about the user? Is it an admin or LDAP user? Is he able to change other values like his first name?

@stonith404 commented on GitHub: Can you share some more information about the user? Is it an admin or LDAP user? Is he able to change other values like his first name?
Author
Owner

@ilyakonovalenko commented on GitHub:

As for the language change, the reason was disabled "Enable self-account editing" option. I believe it should not block language change... Else all inputs should be disabled.

@ilyakonovalenko commented on GitHub: As for the language change, the reason was disabled "Enable self-account editing" option. I believe it should not block language change... Else all inputs should be disabled.
Author
Owner

@ilyakonovalenko commented on GitHub:

It seems it detects the language now. Thank you!

@ilyakonovalenko commented on GitHub: It seems it detects the language now. Thank you!
Author
Owner

@stonith404 commented on GitHub:

Can you test v1.2.0 and let me know if it detects the language automatically? You might have to clear the cookies first and make sure that you didn't set a language manually in the settings.

I'm closing this issue because the original bug is fixed, but feel free to still comment here.

@stonith404 commented on GitHub: Can you test `v1.2.0` and let me know if it detects the language automatically? You might have to clear the cookies first and make sure that you didn't set a language manually in the settings. I'm closing this issue because the original bug is fixed, but feel free to still comment here.
Author
Owner

@ilyakonovalenko commented on GitHub:

Regarding the detection of your locale, to which locale is your computer set "Russian", "Russian, Moldova" or "Russian, Belarus"?

Both devices have ru_RU as a locale.

@ilyakonovalenko commented on GitHub: > Regarding the detection of your locale, to which locale is your computer set "Russian", "Russian, Moldova" or "Russian, Belarus"? Both devices have ru_RU as a locale.
Author
Owner

@stonith404 commented on GitHub:

Okay thanks, this should be fixed in 6c00aaa3ef.

Regarding the detection of your locale, to which locale is your computer set "Russian", "Russian, Moldova" or "Russian, Belarus"?

@stonith404 commented on GitHub: Okay thanks, this should be fixed in 6c00aaa3efa75c76d340718698a0f4556e8de268. Regarding the detection of your locale, to which locale is your computer set "Russian", "Russian, Moldova" or "Russian, Belarus"?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#188