Skip to content

Improvements related to TJAlien::GetUser()

Nikola Hardi requested to merge nhardi/jalien-root:fix-feature-getuser into master

This merge request further improves handling requests for getting the grid user name. A private method Whoami() is introduced which actually issues a "whoami" command, and returns the username as recognized by JCentral. The field fUser is updated right after establishing the connection. Further, fUser is kept up to date by reading metadata in TJAlienResult. The TJAlienResult metadata contains information about the user.

We can't call Command() method on each GetUser() call because GetUser() is a constant method and Command() isn't.

We should test how this fix works when changing roles. Does metadata carry information about the new or previous role/user?

Merge request reports

Loading