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

[graph] create request for already existing group exits with status code 500 #3516

Closed
kiranparajuli589 opened this issue Apr 12, 2022 · 6 comments
Labels

Comments

@kiranparajuli589
Copy link
Contributor

Description

Creating an already existing user exits with HTTP status code 500

< HTTP/1.1 500 Internal Server Error
< Content-Length: 195
< Content-Type: application/json; charset=utf-8
< Date: Tue, 12 Apr 2022 14:08:31 GMT
< X-Graph-Version: f3016d717
< 
{ [195 bytes data]
100   337  100   195  100   142   1048    763 --:--:-- --:--:-- --:--:--  1821
* Connection #0 to host localhost left intact
{
  "error": {
    "code": "generalException",
    "innererror": {
      "date": "2022-04-12T14:08:31Z",
      "request-id": "kiran-OptiPlex-3050/qTdFt9esZ6-000021"
    },
    "message": "LDAP Result Code 68 \"Entry Already Exists\": "
  }
}
@ScharfViktor
Copy link
Contributor

the same behavior with the group.

Expected result: 4xx "Entry Already Exists"

@ScharfViktor
Copy link
Contributor

#5639 same with creating already existing user but disabled user

@2403905
Copy link
Contributor

2403905 commented Jun 7, 2023

No longer relevant for v3.0.0-rc.5

 curl -XPOST "https://localhost:9200/graph/v1.0/users" -d'{"onPremisesSamAccountName":"user2","displayName":"user2","mail":"[email protected]","passwordProfile":{"password":"user2"}}' -uadmin:admin -ik
HTTP/1.1 200 OK
Content-Length: 165
Content-Security-Policy: frame-ancestors 'none'
Content-Type: application/json; charset=utf-8
Date: Wed, 07 Jun 2023 09:18:46 GMT
Vary: Origin
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Graph-Version: 3.0.0-rc.5+dev

{"displayName":"user2","id":"5689e7a3-8ce8-499e-9101-9087d4b07c70","mail":"[email protected]","onPremisesSamAccountName":"user2","surname":"user2","userType":"Member"}
 curl -XPOST "https://localhost:9200/graph/v1.0/users" -d'{"onPremisesSamAccountName":"user2","displayName":"user2","mail":"[email protected]","passwordProfile":{"password":"user2"}}' -uadmin:admin -ik
HTTP/1.1 409 Conflict
Content-Length: 191
Content-Security-Policy: frame-ancestors 'none'
Content-Type: application/json; charset=utf-8
Date: Wed, 07 Jun 2023 09:19:29 GMT
Vary: Origin
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Graph-Version: 3.0.0-rc.5+dev

{"error":{"code":"nameAlreadyExists","innererror":{"date":"2023-06-07T09:19:29Z","request-id":"Julias-MacBook-Pro.local/OJWjuwtcVf-000310"},"message":"a user with that name already exists"}}

@2403905
Copy link
Contributor

2403905 commented Jun 7, 2023

No longer relevant for v3.0.0-rc.5

@2403905 2403905 closed this as completed Jun 7, 2023
@github-project-automation github-project-automation bot moved this from Qualification to Done in Infinite Scale Team Board Jun 7, 2023
@ScharfViktor
Copy link
Contributor

fine for user but still relevant for group. I reopen it because we have failed tests link with issue

@ScharfViktor ScharfViktor reopened this Jun 7, 2023
@github-project-automation github-project-automation bot moved this from Done to In progress in Infinite Scale Team Board Jun 7, 2023
@ScharfViktor ScharfViktor changed the title [graph] create request for already existing user exits with status code 500 [graph] create request for already existing group exits with status code 500 Jun 7, 2023
@ScharfViktor
Copy link
Contributor

fixed

@github-project-automation github-project-automation bot moved this from In progress to Done in Infinite Scale Team Board Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants