[
https://issues.apache.org/jira/browse/VFS-822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark updated VFS-822:
---------------------
Description:
In
[https://github.com/apache/commons-vfs/blob/master/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java#L258]
the groupIds are retrieved using the command id -G. If a user has no groups
(gid=0 for example) then the result is that:
[https://github.com/apache/commons-vfs/blob/master/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java#L264]
will have an array with one entry being an empty string. This results in a
NumberFormatException.
> getGroupIds fails when user has no groups
> -----------------------------------------
>
> Key: VFS-822
> URL: https://issues.apache.org/jira/browse/VFS-822
> Project: Commons VFS
> Issue Type: Bug
> Affects Versions: 2.9.0
> Reporter: Mark
> Priority: Minor
>
> In
> [https://github.com/apache/commons-vfs/blob/master/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java#L258]
> the groupIds are retrieved using the command id -G. If a user has no groups
> (gid=0 for example) then the result is that:
> [https://github.com/apache/commons-vfs/blob/master/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileSystem.java#L264]
> will have an array with one entry being an empty string. This results in a
> NumberFormatException.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)