Community
Participate
Working Groups
Build ID: I20080617-2000 Steps To Reproduce: 1. Have a system with an image that is using busybox. 2. Add this box as a generic host. 3. Try to launch an application inside this system using PTP. You will see that the system will crash with the following exception: --> Exception in thread "Thread-20" java.lang.NumberFormatException: For input string: "". More information: The problem is that the method org.eclipse.ptp.remotetools.internal.ssh.StatusTools.fetchRemoteUserInfo tries to get a list of the groups that a user belongs to by using the id method with the -G argument. However, inside busybox the -G argument does not exists, so userInfoFields[2] is "" and Java cannot convert "" to a number, raising the exception. My box at this moment is mambo however since this method is generic, any host with busybox would suffer from the same problem.
I am working on a patch to solve this problem.
Created attachment 111101 [details] This patches parses /etc/group on the target machine to see the groups that the user belongs to. If id -G does not exists, userField[2] is left blank. This patch catches this case and parses /etc/group to find out which groups the user belongs to.
The patch solved my problem.
Committed the change. Thanks.
Thanks.