Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.21.1, 3.24.0
-
3
Description
Open the UI API browser and expand the /beta/repositories/docker/group/{repositoryName} resource.
The example value for the model is:
{ "name": "internal", "online": true, "storage": { "blobStoreName": "default", "strictContentTypeValidation": true }, "group": { "memberNames": "maven-public" }, "docker": { "v1Enabled": false, "forceBasicAuth": true, "httpPort": 8082, "httpsPort": 8083 } }
If this example model is used, you get a 400 response errors:
"id": "memberNames", "message": "Cannot deserialize instance of `java.util.ArrayList` out of VALUE_STRING token"
Expected
Fix the example model to use an array for memberNames instead of a String "maven-public".
Make sure other REST resources for other formats are also fixed.
Workaround
Manually edit the model to use an array instead of a string.
"memberNames": [ "maven-public" ]