commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent G (JIRA)" <>
Subject [jira] [Commented] (VFS-405) Get/set the file permissions
Date Fri, 21 Oct 2016 15:29:58 GMT


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<Type,
Boolean>) 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:
>             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,
> 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

View raw message