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

LDAP import - Wrong default user language #15067

Closed
2 tasks done
ug-s-jz opened this issue Jul 11, 2024 · 5 comments
Closed
2 tasks done

LDAP import - Wrong default user language #15067

ug-s-jz opened this issue Jul 11, 2024 · 5 comments
Labels
✋ bug Confirmed bug ldap

Comments

@ug-s-jz
Copy link

ug-s-jz commented Jul 11, 2024

Debug mode

Describe the bug

Hello,

I am using the current Snipe-IT version v7.0.8 and I have noticed something with a new user.

The user has received English emails, although the default language in the .env file and in the settings is set to German (de-DE).

If I then synchronise the users via LDAP and a new user is created, the user language is set to "English, USA".

I would have expected the user to be automatically assigned the default language.

Reproduction steps

  1. Set .env and system default language to german (de-DE)
  2. Sync new user with LDAP
  3. check the user language, language is English, USA

Expected behavior

User should have the default language as user language

Screenshots

No response

Snipe-IT Version

v7.0.8 - build 14243 (master)

Operating System

Ubuntu 22.04.4 LTS

Web Server

Apache

PHP Version

8.2.20

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

Copy link

welcome bot commented Jul 11, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@6wensitan
Copy link

You can try to back up a copy of the EN folder and de-DE folder in the Lang folder Lang folder, delete the EN original folder, and then modify the name of the de-DE copy folder into EN. (Note the name here).

@snipe
Copy link
Owner

snipe commented Jul 13, 2024

@6wensitan I would definitely not move language files around, as you'd have a bad time while upgrading.

@snipe
Copy link
Owner

snipe commented Jul 13, 2024

I have a potential fix (needs testing on Monday) for this here: #15084

@snipe snipe added ✋ bug Confirmed bug ldap labels Jul 13, 2024
@snipe snipe changed the title Wrong default user language LDAP import - Wrong default user language Jul 13, 2024
@snipe
Copy link
Owner

snipe commented Jul 17, 2024

This fix is now out on master. If you run the upgrader, can you let me know if it resolves your issue. (Per the PR, it won't update existing users, since those could have been manually changed to something else and we have no way of knowing that.)

@snipe snipe closed this as completed in 0ac82fb Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✋ bug Confirmed bug ldap
Projects
None yet
Development

No branches or pull requests

3 participants