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/09 00:07:00 UTC
[jira] [Created] (SLING-10472) TokenStore.saveTokens fails on
windows
Eric Norman created SLING-10472:
-----------------------------------
Summary: 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
Fix For: Form Based Authentication 1.0.22
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)