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

Eric Norman updated SLING-10472:
--------------------------------
    Fix Version/s:     (was: Form Based Authentication 1.0.22)
                   Form Based Authentication 1.0.24

> TokenStore.saveTokens fails on windows
> --------------------------------------
>
>                 Key: SLING-10472
>                 URL: https://issues.apache.org/jira/browse/SLING-10472
>             Project: Sling
>          Issue Type: Bug
>            Reporter: Eric Norman
>            Assignee: Eric Norman
>            Priority: Major
>             Fix For: Form Based Authentication 1.0.24
>
>
> As reported by Stefan during the release vote:
> TokenStore#saveTokens fails on windows because the File.renameTo call that is 
> renaming the temp file to the destination fails if the file already exists.  
> This failure does not happen in linux.
> Expected:
> Change the code to use the nio 
> Files.[{{move}}|https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/Files.html#move(java.nio.file.Path,java.nio.file.Path,java.nio.file.CopyOption...)]
>  method to rename the file in a platform independent manner.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to