You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (Jira)" <ji...@apache.org> on 2021/06/12 01:34:00 UTC

[jira] [Closed] (SLING-10472) TokenStore.saveTokens fails on windows

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

Eric Norman closed SLING-10472.
-------------------------------

Closing with the 1.0.24 release

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