okta-sdk-java
okta-sdk-java copied to clipboard
Update Application User returns E0000009 with no message
Describe the bug?
Updating an application user using this SDK fails with an error code E0000009, and it doesn't give much detail other than Internal Server Error.
Here are some error ids in case you need it:
- "oaeHItKoIPvSxu0vVoShNGXQw"
- "oaecrWvQlQiQrGRTNP-wXZK8g"
What is expected to happen?
The response should be 2xx, and an app user should be updated successfully.
What is the actual behavior?
The request fails with 500.
{"errorCode":"E0000009","errorSummary":"Internal Server Error","errorLink":"E0000009","errorId":"oaeUwehAi0TTu-CsPBeUMgahw","errorCauses":[]}
ApiException{code=500, responseHeaders={...}, responseBody={...})
Reproduction Steps?
const val applicationId = "123"
const val oktaUserId = "456"
val oktaClient = Clients.builder().
.setOrgUrl(this.oktaOrgUrl)
....
.build()
val applicationUserApi = ApplicationUserApi(oktaClient)
val appUser = applicationUserApi.getApplicationUser(application, oktaUserId, null) // returns the appuser successfully
appUser.profile?.set("lastName", "Card")
applicationUserApi.updateApplicationUser(applicationId, oktaUserId, appUser) // returns ApiException with error code E000009
Additional Information?
When I send the same request to Okta using cURL, it works.
curl --location 'https://mydomain.okta.com//api/v1/apps/{appId}/users/{userId}' \
--header 'Authorization: SSWS ...' \
--header 'Content-Type: application/json' \
--data '{
"profile": {
"lastName": "Card"
}
}'
Java Version
openjdk 17.0.6 2023-01-17 LTS OpenJDK Runtime Environment Corretto-17.0.6.10.1 (build 17.0.6+10-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.6.10.1 (build 17.0.6+10-LTS, mixed mode, sharing)
SDK Version
17.0.0
OS version
No response