Bug 34647 - Displayed username in UMC header not correct for some cases
Displayed username in UMC header not correct for some cases
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.2
Other Linux
: P5 normal (vote)
: UCS 3.2-x
Assigned To: UMC maintainers
:
: 31981 36027 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-25 12:04 CEST by Alexander Kläser
Modified: 2014-12-16 17:06 CET (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2014-04-25 12:04:58 CEST
Sometimes it occurs that the displayed username (in the UMC header) is incorrect.

This is probably a side effect of the cookie in which the last username is saved. AFAIK the username is internally set after a successful AUTH command. However, the username might already be set up before the real login finished. In consequence, the value stored in the cookie is used:

> ...
> tools.status('username', props.username || cookie('UMCUsername'));
> ...

It probably would be better (similar to hostname) to set the username after successful login, i.e., move the part below from the function setupStaticGui() into setupGui():

> this._headerRight.addChild(new Text({
>   id: 'umcMenuUsername',
>   'class': 'umcHeaderText',
>   content: _('umcUserInfo', {
>     username: tools.status('username')
>   })
> }));
Comment 1 Philipp Hahn univentionstaff 2014-04-25 21:04:39 CEST
Also noticed in the Technical Training.
Comment 2 Florian Best univentionstaff 2014-05-05 08:30:27 CEST
*** Bug 31981 has been marked as a duplicate of this bug. ***
Comment 3 Florian Best univentionstaff 2014-05-05 08:30:59 CEST
(In reply to Florian Best from comment #2)
> *** Bug 31981 has been marked as a duplicate of this bug. ***
This bug explains how it can be reproduced.
Comment 4 Florian Best univentionstaff 2014-09-30 11:18:48 CEST
*** Bug 36027 has been marked as a duplicate of this bug. ***
Comment 5 Florian Best univentionstaff 2014-12-16 17:06:42 CET
I fixed this along with UCS 4.0.