Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1423

BlobStore.putBlob throws RuntimeException with filesystem provider on RUSSIAN localized Windows

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.2
    • 2.1.0, 2.0.1
    • jclouds-blobstore
    • Microsoft Windows (tested on 7 and 10), Java 7 and 8.

    Description

      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 

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            wigu Gunther Wiest

            Dates

              Created:
              Updated:

              Slack

                Issue deployment