Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In JobClient line 530, we have
String user = System.getProperty("user.name"); job.setUser(user != null ? user : "Dr Who");
Since a ugi is already obtained in the earlier codes, we should get the username from ugi, not System.getProperty("user.name"). Also, Exception should be thrown if the username is null, instead of using a default.