From dev-return-26125-apmail-mina-dev-archive=mina.apache.org@mina.apache.org Thu Nov 28 21:39:35 2013 Return-Path: X-Original-To: apmail-mina-dev-archive@www.apache.org Delivered-To: apmail-mina-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 811EC10ECA for ; Thu, 28 Nov 2013 21:39:35 +0000 (UTC) Received: (qmail 35552 invoked by uid 500); 28 Nov 2013 21:39:35 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 35529 invoked by uid 500); 28 Nov 2013 21:39:35 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 35521 invoked by uid 99); 28 Nov 2013 21:39:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Nov 2013 21:39:35 +0000 Date: Thu, 28 Nov 2013 21:39:35 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: dev@mina.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (DIRMINA-974) NativeSshFileNio assumes unix filesytem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRMINA-974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet closed DIRMINA-974. ----------------------------------- Resolution: Invalid This issue should be raised in http://issues.apache.org/jira/browse/SSHD instead. > NativeSshFileNio assumes unix filesytem > --------------------------------------- > > Key: DIRMINA-974 > URL: https://issues.apache.org/jira/browse/DIRMINA-974 > Project: MINA > Issue Type: New Feature > Components: Core > Affects Versions: 0.9.0 > Environment: Windows > Reporter: lucas theisen > > The readAttributes method is hard coded to ask for unix attribute set: > [code:java] > Map a = Files.readAttributes( > file.toPath(), > "unix:size,uid,owner,gid,group,isDirectory,isRegularFile,isSymbolicLink,permissions,creationTime,lastModifiedTime,lastAccessTime", > followLinks ? new LinkOption[0] : new LinkOption[] { LinkOption.NOFOLLOW_LINKS }); > [code] > This causes a build failure on windows: > [code] > java.lang.UnsupportedOperationException: View 'unix' not available > at sun.nio.fs.AbstractFileSystemProvider.readAttributes(AbstractFileSystemProvider.java:91) > at java.nio.file.Files.readAttributes(Files.java:1902) > at org.apache.sshd.common.file.nativefs.NativeSshFileNio.getAttributes(NativeSshFileNio.java:58) > at org.apache.sshd.server.sftp.SftpSubsystem.writeAttrs(SftpSubsystem.java:972) > at org.apache.sshd.server.sftp.SftpSubsystem.sendAttrs(SftpSubsystem.java:790) > at org.apache.sshd.server.sftp.SftpSubsystem.process(SftpSubsystem.java:526) > at org.apache.sshd.server.sftp.SftpSubsystem.run(SftpSubsystem.java:334) > at java.lang.Thread.run(Thread.java:722) > [code] -- This message was sent by Atlassian JIRA (v6.1#6144)