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

ASF subversion and git services commented on SYNCOPE-1757:
----------------------------------------------------------

Commit c0ca6ed6654b27d73c0736bfa7307369162a0c42 in syncope's branch 
refs/heads/3_0_X from Fabio Martelli
[ https://gitbox.apache.org/repos/asf?p=syncope.git;h=c0ca6ed665 ]

[SYNCOPE-1757] provides type info during SyncToken value serialization (#460)



> 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)

Reply via email to