You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Francesco Chicchiriccò (Jira)" <ji...@apache.org> on 2023/05/09 06:22:00 UTC

[jira] [Resolved] (SYNCOPE-1757) Misalignment between SyncTokenSerializer and SyncTokenDeserializer in case of token given as a clear string

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

Francesco Chicchiriccò resolved SYNCOPE-1757.
---------------------------------------------
    Resolution: Fixed

> Misalignment between SyncTokenSerializer and SyncTokenDeserializer in case of token given as a clear string
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: SYNCOPE-1757
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1757
>             Project: Syncope
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.1.14, 3.0.3
>            Reporter: Fabio Martelli
>            Priority: Major
>             Fix For: 3.0.4, 4.0.0
>
>
> If resource connector provides a syncToken as a clear string and if this string is Base64 deserializable (i.e.AD  uSNChanged "1934664") than serialization works fine ("syncToken":"\{\"value\":\"1934664\"}") but deserialization needed to ask for a new incremental PULL. In fact in this case the value is deserialized as a byte array because deserialized Base64.
>  
> This behaviour cause the failure of the incremental PULL.
>  
> [https://github.com/apache/syncope/blob/3_0_X/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/serialization/SyncTokenDeserializer.java]
>  
> [https://github.com/apache/syncope/blob/3_0_X/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/serialization/SyncTokenSerializer.java]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)