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

Gunther Wiest commented on JCLOUDS-1423:
----------------------------------------

The bug is clear and obvious, if you know about the difference in the 
codepages, which are used in Windows itself, and within 'windows cmd windows'. 
If you don't use windows, you will not be able to understand the problem.

To illustrate this, you could do the following on a windows system:
 * Create a file with special characters, for example: Testäöüß.txt
 * open a cmd window in the same directory and type 'dir': You will see the 
filename correct 'Testäöüß.txt'
 * then type 'dir > out.txt' and open this file with the "windows notepad': You 
will see the filename wrong 'Test„”á.txt'

This is the reason for this bug.

 

But anyway, this is the stacktrace:
{code:java}
Caused by: java.lang.RuntimeException: 
java.nio.file.attribute.UserPrincipalNotFoundException
 at 
org.jclouds.filesystem.strategy.internal.FilesystemStorageStrategyImpl.setBlobAccess(FilesystemStorageStrategyImpl.java:599)
 ~[?:?]
 at 
org.jclouds.filesystem.strategy.internal.FilesystemStorageStrategyImpl.putBlob(FilesystemStorageStrategyImpl.java:500)
 ~[?:?]
 at 
org.jclouds.blobstore.config.LocalBlobStore.putBlob(LocalBlobStore.java:763) 
~[?:?]
 at 
org.jclouds.blobstore.config.LocalBlobStore.putBlob(LocalBlobStore.java:523) 
~[?:?]
{code}

> BlobStore.putBlob throws RuntimeException with filesystem provider on RUSSIAN 
> localized Windows
> -----------------------------------------------------------------------------------------------
>
>                 Key: JCLOUDS-1423
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1423
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>    Affects Versions: 2.0.2
>         Environment: Microsoft Windows (tested on 7 and 10), Java 7 and 8.
>            Reporter: Gunther Wiest
>            Assignee: Zack Shoylev
>            Priority: Minor
>              Labels: filesystem, windows
>             Fix For: 2.1.0, 2.0.1
>
>
> When using the filesystem provider on a localized RUSSIAN Windows system 
> putBlob consistenly throws a RuntimeException. The put operation does 
> succeed, however, meaning a viable workaround is to catch-and-ignore.
> The cause of the Exception is a UserPrincipalNotFoundException which is 
> thrown in org.jclouds.filesystem.util.Utils while trying to resolve the 
> Windows SID 'S-1-1-0' user group using 
> UserPrincipalLookupService.lookupPrincipalByName.
>  
> The Russian translation for everyone is "Все", and the output of the "whoami" 
> command will be in [https://de.wikipedia.org/wiki/Codepage_866] wich turns 
> into different characters, when read into a java string via 
> "ProcessBuilder.start". This is the reason why the "lookupPrincipalByName" 
> fails.
> This will occur on all windows systems, where the translation contains non 
> standard ASCII 7 bit characters. See also  
> [https://www.microsoft.com/en-us/language/Search?&searchTerm=Everyone&langID=Russian&Source=true&productid=All%20Products]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to