Home My Page Projects FusionForge
Summary Activity Forums Tracker Lists News SCM Files Mediawiki Hudson/Jenkins

[#666] user.unix_status modified from admin/useredit.php regardless if they are added to a project group or not

Date:
2014-04-29 21:23
Priority:
3
State:
Closed
Submitted by:
Seth Galitzer (sgsax)
Assigned to:
Franck Villaume (nerville)
Target Release:
5.3.1
Found in Version:
5.2.3
Severity:
normal
Resolution:
Fixed
Summary:
user.unix_status modified from admin/useredit.php regardless if they are added to a project group or not

Detailed description
The user.unix_status field cannot be modified directly in admin/useredit.php. Per the note displayed on that page: "Unix status updated mirroring web status, unless it has value 'No unix account (N)'". By default, new accounts have unix_status set to 'N'. I noticed that if you click on the "Update" button at the bottom of the page (below the project listing), the status is always changed to 'A', regardless if you selected any projects for them to be added to or not. Clicking on the "Update" button in the middle of the page (just below Account Information), the status is not changed.

This has been handy while debugging another issue, but it seems like it may not be desired behavior. It appears that both Update buttons submit to the same form target, so the split behavior seems to be an error.

On a related note, I see why a user probably doesn't need shell access if they are not a member of a project, but it might be nice to be able to manually toggle this field value from the web UI.
Message  ↓
Date: 2014-05-15 14:02
Sender: Franck Villaume

fix in Branch_5_3: c7c0d12f0f72458ce960297bf4812d3c9b8d5294

Date: 2014-05-15 12:52
Sender: Franck Villaume

after some tests, here are some facts.
1) you create an account, unix_status is set to N (No unix account, default value for unix_status column in the users table)
2) you click on the "update" button in the middle of the page, unix_status is set to D (check setUnixStatus function with status = N)
3) you click again on the "update" button in the middle of the page, unix_status is set to A. For this case, the easy fix is to check getGroups before calling setUnixStatus.

Still, it is not a complete fix.

Field Old Value Date By
status_idOpen2014-05-15 14:02nerville
close_dateNone2014-05-15 14:02nerville
assigned_tonone2014-05-15 14:02nerville
Target ReleaseNone2014-05-15 14:02nerville
ResolutionNone2014-05-15 14:02nerville