Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.9.0
-
None
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:
will have an array with one entry being an empty string. This results in a NumberFormatException.