Stéphane POPOFF created SYNCOPE-1939:
----------------------------------------
Summary: API call POST rest/anyTypes creates object but don't
update console GUI
Key: SYNCOPE-1939
URL: https://issues.apache.org/jira/browse/SYNCOPE-1939
Project: Syncope
Issue Type: Bug
Components: console, core
Affects Versions: 4.0.3
Reporter: Stéphane POPOFF
Starting with a clean instance, I create a schema and a class using the API,
and finally an object. All calls are valid, but in the end, I can't find the
PERSON tab in the Domains view.
The object exists in the configuration but isn't loaded into the view.
The curl requests:
{code:java}
curl --location 'http://<CoreServer>/syncope/rest/schemas/PLAIN' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"_class": "org.apache.syncope.common.lib.to.PlainSchemaTO",
"key": "personId",
"anyTypeClass": "personne",
"type": "String",
"mandatoryCondition": "true",
"uniqueConstraint": "true"
}'
curl --location 'http://<CoreServer>/syncope/rest/schemas/PLAIN' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"_class": "org.apache.syncope.common.lib.to.PlainSchemaTO",
"key": "nom",
"anyTypeClass": "personne",
"type": "String"
}'
curl --location 'http://<CoreServer>/syncope/rest/schemas/PLAIN' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"_class": "org.apache.syncope.common.lib.to.PlainSchemaTO",
"key": "prenom",
"anyTypeClass": "personne",
"type": "String"
}'curl --location 'http://<CoreServer>/syncope/rest/schemas/PLAIN' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"_class": "org.apache.syncope.common.lib.to.PlainSchemaTO",
"key": "operationalUnit",
"anyTypeClass": "personne",
"type": "String"
}'
curl --location 'http://<CoreServer>/syncope/rest/anyTypeClasses' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"key": "personne",
"plainSchemas": [
"personId",
"nom",
"prenom",
"operationalUnit"
],
"derSchemas": [],
}'curl --location 'http://<CoreServer>/syncope/rest/anyTypes' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
"key": "PERSON",
"kind": "ANY_OBJECT",
"classes": [
"personne"
]
}'{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)