Skip to content

Fix translation of user exists error server-side - #33819

Merged
PVince81 merged 1 commit into
masterfrom
fix/user-exists-l10n
Sep 16, 2022
Merged

Fix translation of user exists error server-side#33819
PVince81 merged 1 commit into
masterfrom
fix/user-exists-l10n

Conversation

@Pytal

@PytalPytal commented Sep 1, 2022

Copy link
Copy Markdown
Member

Revert special 102 status code handling on the frontend from #33222 and translate the string server-side instead as the 102 status code does not always mean that the user already exists i.e.

thrownewOCSException('Subadmin group does not exist', 102);

102 in addUser()

thrownewOCSException('Invalid quota value ' . $value, 102);

102 thrown in editUser() called by addUser()

@PytalPytal added this to the Nextcloud 25 milestone Sep 1, 2022
@Pytal
Pytal requested review from a team, come-nc and nickvergessenSeptember 1, 2022 19:15
@PytalPytal self-assigned this Sep 1, 2022
@Pytal
Pytal requested review from PVince81 and juliusknorr and removed request for a teamSeptember 1, 2022 19:15
@Pytal

Pytal commented Sep 1, 2022

Copy link
Copy Markdown
MemberAuthor

/backport to stable24

@blizzzblizzz mentioned this pull request Sep 1, 2022
This was referenced Sep 6, 2022
@Pytal
Pytalforce-pushed the fix/user-exists-l10n branch from 4ba0aeb to b04b193CompareSeptember 9, 2022 20:22
@PytalPytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 9, 2022
@skjnldsvskjnldsv mentioned this pull request Sep 15, 2022
Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal
Pytalforce-pushed the fix/user-exists-l10n branch from b04b193 to 8a15c62CompareSeptember 15, 2022 22:56
@Pytal

Copy link
Copy Markdown
MemberAuthor

Rebased

@PVince81
PVince81 merged commit c14ad84 into masterSep 16, 2022
@PVince81
PVince81 deleted the fix/user-exists-l10n branch September 16, 2022 12:58
Pytal added a commit that referenced this pull request Sep 16, 2022
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Pytal added a commit that referenced this pull request Sep 19, 2022
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 4de19e9)
s8321414 pushed a commit to MODAODF/odfweb that referenced this pull request May 4, 2023
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 4de19e9)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: language/translations (l10n/i18n)Localization and translation mattersfeature: settingsfeature: users and groups

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Pytal@CarlSchwan@come-nc@PVince81