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 29EB1200BA7 for ; Fri, 21 Oct 2016 17:30:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 28907160ADE; Fri, 21 Oct 2016 15:30:05 +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 6FD03160AE8 for ; Fri, 21 Oct 2016 17:30:04 +0200 (CEST) Received: (qmail 27526 invoked by uid 500); 21 Oct 2016 15:29:58 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 27495 invoked by uid 99); 21 Oct 2016 15:29:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2016 15:29:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 635182C0D54 for ; Fri, 21 Oct 2016 15:29:58 +0000 (UTC) Date: Fri, 21 Oct 2016 15:29:58 +0000 (UTC) From: "Laurent G (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (VFS-405) Get/set the file permissions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 21 Oct 2016 15:30:05 -0000 [ https://issues.apache.org/jira/browse/VFS-405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15595427#comment-15595427 ] Laurent G commented on VFS-405: ------------------------------- Hum, don't know if it worth a new ticket, so I posted this here : According to me PosixPermissions.makeReadable(boolean, boolean) and PosixPermissions.computeNewPermissions(Map) do not play well. If server had let you create file so that both user and others can read and you want to restrict that readability to the user, makeReadable will transmit just one possible change to computeNewPermissions, but it is the wrong one. So to achieve what was indicated previously, one has to make two calls : one to remove readability to everyone and then one to give it back to the user. Has I got it right ? > Get/set the file permissions > ---------------------------- > > Key: VFS-405 > URL: https://issues.apache.org/jira/browse/VFS-405 > Project: Commons VFS > Issue Type: Improvement > Reporter: Damian Waszak > Fix For: 2.1 > > Attachments: permissions-0001.patch, permissions-0002.patch, permissions-0003.patch, permissions-0004.patch, permissions-0005.patch, permissions-0006.patch, permissions-0007.patch, permissions-0008.patch > > > Add possibility to change file permissions through VFS, similar to executing *chmod* command on a file. > Simple use case scenario would be to move a file to SFTP server, and then retrieve and change the permissions, e.g. exececute chmod 0644. -- This message was sent by Atlassian JIRA (v6.3.4#6332)