Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B0187200C13 for ; Mon, 6 Feb 2017 10:43:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AEA73160B53; Mon, 6 Feb 2017 09:43:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 019DD160B49 for ; Mon, 6 Feb 2017 10:43:49 +0100 (CET) Received: (qmail 98383 invoked by uid 500); 6 Feb 2017 09:43:49 -0000 Mailing-List: contact dev-help@polygene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@polygene.apache.org Delivered-To: mailing list dev@polygene.apache.org Received: (qmail 98372 invoked by uid 99); 6 Feb 2017 09:43:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 09:43:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AB42F180BB9 for ; Mon, 6 Feb 2017 09:43:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id aHrlwF_QXPnb for ; Mon, 6 Feb 2017 09:43:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 110505F283 for ; Mon, 6 Feb 2017 09:43:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DA44DE026E for ; Mon, 6 Feb 2017 09:43:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9882A25286 for ; Mon, 6 Feb 2017 09:43:41 +0000 (UTC) Date: Mon, 6 Feb 2017 09:43:41 +0000 (UTC) From: "Georg Ragaller (JIRA)" To: dev@polygene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (POLYGENE-223) Unit tests for jclouds fail on a localized windows installation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 06 Feb 2017 09:43:50 -0000 Georg Ragaller created POLYGENE-223: --------------------------------------- Summary: Unit tests for jclouds fail on a localized windows installation Key: POLYGENE-223 URL: https://issues.apache.org/jira/browse/POLYGENE-223 Project: Polygene Issue Type: Bug Affects Versions: 3.0 Environment: awt.toolkit=sun.awt.windows.WToolkit file.encoding=Cp1252 file.encoding.pkg=sun.io file.separator=\ java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment java.awt.printerjob=sun.awt.windows.WPrinterJob java.class.path=. java.class.version=52.0 java.endorsed.dirs=d:\java\jdk_x86_64\1.8.0\jre\lib\endorsed java.ext.dirs=d:\java\jdk_x86_64\1.8.0\jre\lib\ext;C:\Windows\Sun\Java\lib\ext java.home=d:\java\jdk_x86_64\1.8.0\jre java.io.tmpdir=C:\Users\geler\AppData\Local\Temp\ java.library.path=d:\java\jdk_x86_64\1.8.0\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;d:\java\jdk_x86_64\1.8.0\bin;;. java.runtime.name=Java(TM) SE Runtime Environment java.runtime.version=1.8.0_121-b13 java.specification.name=Java Platform API Specification java.specification.vendor=Oracle Corporation java.specification.version=1.8 java.vendor=Oracle Corporation java.vendor.url=http://java.oracle.com/ java.vendor.url.bug=http://bugreport.sun.com/bugreport/ java.version=1.8.0_121 java.vm.info=mixed mode java.vm.name=Java HotSpot(TM) 64-Bit Server VM java.vm.specification.name=Java Virtual Machine Specification java.vm.specification.vendor=Oracle Corporation java.vm.specification.version=1.8 java.vm.vendor=Oracle Corporation java.vm.version=25.121-b13 line.separator= os.arch=amd64 os.name=Windows 7 os.version=6.1 path.separator=; sun.arch.data.model=64 sun.boot.class.path=d:\java\jdk_x86_64\1.8.0\jre\lib\resources.jar;d:\java\jdk_x86_64\1.8.0\jre\lib\rt.jar;d:\java\jdk_x86_64\1.8.0\jre\lib\sunrsasign.jar;d:\java\jdk_x86_64\1.8.0\jre\lib\jsse.jar;d:\java\jdk_x86_64\1.8.0\jre\lib\jce.jar;d:\java\jdk_x86_64\1.8.0\jre\lib\charsets.jar;d:\java\jdk_x86_64\1.8.0\jre\lib\jfr.jar;d:\java\jdk_x86_64\1.8.0\jre\classes sun.boot.library.path=d:\java\jdk_x86_64\1.8.0\jre\bin sun.cpu.endian=little sun.cpu.isalist=amd64 sun.desktop=windows sun.io.unicode.encoding=UnicodeLittle sun.java.command=DumpSystemProperties sun.java.launcher=SUN_STANDARD sun.jnu.encoding=Cp1252 sun.management.compiler=HotSpot 64-Bit Tiered Compilers sun.os.patch.level=Service Pack 1 sun.stderr.encoding=cp850 user.country=DE user.dir=d:\temp user.home=C:\Users\geler user.language=de user.name=geler user.script= user.timezone= user.variant= Reporter: Georg Ragaller Attachments: jclouds-test-summary.zip When building from source, on my windows machine with locale DE the jclouds tests fail with the following exception as root cause (commit 9d16d5553 on the develop branch): {code:title=Stacktrace, for more see Attachment|borderStyle=solid} Caused by: java.nio.file.attribute.UserPrincipalNotFoundException at sun.nio.fs.WindowsUserPrincipals.lookup(WindowsUserPrincipals.java:147) at sun.nio.fs.WindowsFileSystem$LookupService$1.lookupPrincipalByName(WindowsFileSystem.java:270) at org.jclouds.filesystem.util.Utils.setPrivate(Utils.java:83) at org.jclouds.filesystem.strategy.internal.FilesystemStorageStrategyImpl.setContainerAccess(FilesystemStorageStrategyImpl.java:192) ... 41 more {code} A bit of investigation shows, that the currently used jclouds version tries to lookup a user principal with the name {{Everyone}}, but that doesn't work with a German locale (and probably with all other non English locales). [https://github.com/jclouds/jclouds/blob/rel/jclouds-1.9.2/apis/filesystem/src/main/java/org/jclouds/filesystem/util/Utils.java#L66] It looks like this problem was fixed with [https://github.com/jclouds/jclouds/commit/2efcb2c5a9fadc52bcac411898154735eea4a66a] My guess is, that this issue can be fixed by upgrading from jclouds 1.9.x to 2.0.x. Neither I'm experienced with gradle dependency management, nor the jclouds extension and the implications when upgrading. So I would leave that to the experts. -- This message was sent by Atlassian JIRA (v6.3.15#6346)