[ 
https://issues.apache.org/jira/browse/SYNCOPE-1939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Francesco Chicchiriccò reassigned SYNCOPE-1939:
-----------------------------------------------

    Assignee: Francesco Chicchiriccò

> API call POST rest/anyTypes creates object but don't soon update console GUI
> ----------------------------------------------------------------------------
>
>                 Key: SYNCOPE-1939
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1939
>             Project: Syncope
>          Issue Type: Bug
>          Components: console
>    Affects Versions: 4.0.3
>            Reporter: Stéphane POPOFF
>            Assignee: Francesco Chicchiriccò
>            Priority: Major
>             Fix For: 4.0.4, 4.1.0
>
>
> 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)

Reply via email to