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

[Backport/4.0] graph/education: Check school number for duplicates before adding a school #7374

Merged
merged 7 commits into from Sep 27, 2023

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Sep 27, 2023

This cherry-picks #7351 into stable/4.0

An LDAP Modify operation never returns LDAPResultEntryAlreadyExists errors.
That error can only happen for LDAPAdd or LDAPModifyDN.

(cherry picked from commit ce808ea)
Sometimes we explicit need to lookup by number and not numberOrID

(cherry picked from commit e2849bf)
- Use var for common errors
- Add the addition error message to the Error() output of errorcode.Error
- in PatchEducationSchool() use errorcode.RenderError() to turn the errorcode
  in to the right HTTP Status (instead of return 500 always)

(cherry picked from commit a34d467)
@rhafer rhafer self-assigned this Sep 27, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

70.8% 70.8% Coverage
0.0% 0.0% Duplication

@micbar micbar merged commit bdc2776 into owncloud:stable-4.0 Sep 27, 2023
3 checks passed
ownclouders pushed a commit that referenced this pull request Sep 27, 2023
[Backport/4.0] graph/education: Check school number for duplicates before adding a school
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants