fix: scim user management endpoint failing due to conflict with user … #1181
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix for two issues in jenkins build for jans-config-api
1) jans-config-api-server :
Error: CAUSED BY:org.jboss.resteasy.spi.UnhandledException: com.fasterxml.jackson.databind.JsonMappingException: Index 0 out of bounds for length 0 (through reference chain: java.util.ArrayList[0]->io.jans.as.common.model.common.User[""customAttributes""]->java.util.ArrayList[4]->io.jans.orm.model.base.CustomObjectAttribute[""displayValue""
Issue: io.jans.orm.model.base.CustomObjectAttribute.java:getDisplayValue() - accessing list element without checking the size
Fix: io.jans.orm.model.base.CustomObjectAttribute.java:getDisplayValue() - added checked access for list element
2) scim-plugin
Error: src.test.resources.feature.scim.user.scim-user: scim-user.feature:33 - javascript evaluation failed: mainUrl + '/' +response.Resources[0].id, TypeError: Cannot read property ""0"" from undefined in at line number 1
scim-user.feature:68 - status code was: 400, expected: 200, response time: 121, url: https://jenkins-build.jans.io/jans-config-api/scim/user/null, response: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of
java.util.LinkedHashMap
(although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('2022-04-07T09:54:13')Issue: Conflict of endpoint path with newly added user managment service path
Fix: Renamed scim service path