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:27:00 UTC
[jira] [Resolved] (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 resolved SLING-10472.
---------------------------------
Resolution: Fixed
Fixed at: [38b9dfaf57c47b2c9a5d91de30d95a889e8df910|https://github.com/apache/sling-org-apache-sling-auth-form/commit/38b9dfaf57c47b2c9a5d91de30d95a889e8df910]
> 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.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)