[ 
https://issues.apache.org/jira/browse/SYNCOPE-1939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045396#comment-18045396
 ] 

Francesco Chicchiriccò commented on SYNCOPE-1939:
-------------------------------------------------

It turns out to be a caching issue on Console.

So, if you create via REST the new AnyType while not logged into Console, you 
will be able to see it as expected after subsequent login.
If instead you are logged into Console while creating the new AnyType via REST, 
you will need to log out and back in to see it.

> 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