Bug #698 (closed)
No defaults listed for root group
Reported by: | jamoore | Owned by: | aleksandrat@… |
---|---|---|---|
Priority: | minor | Cc: | |
Sprint: | n.a. | ||
Total Remaining Time: | n.a. |
Description
That by itself isn't so bad, but then when trying to update the experimenter, validation won't let me continue without the field filled out.
Attachments (1)
Change History (8)
Changed 17 years ago by jmoore
comment:1 Changed 17 years ago by atarkowska
comment:2 Changed 17 years ago by jmoore
Ok, but why isn't the drop down box filled? Roots default group is set to "system". If the box were there, then that would be highlighted.
comment:3 Changed 17 years ago by atarkowska
Because there is filter. List<ExperimenterGroup?> of default group which you can see is lookupGroups() where you have got everything. I filtered and removed "user" and "system". I didn't know that system can be set as default.
Well, "system" can be set as default and should be on the list? and "user" too? Is there any case when "user" should be set as default?
comment:4 Changed 17 years ago by jmoore
No, there's no good reason for "user" to be default. During login, one is required to login to a group other than default. (It is allowed to login to "system" as admin.)
comment:5 Changed 17 years ago by jmoore
I was wandering about "system" on default list. This case is only for
"root", isn't it? What about user who is enrolled for "system"
because is admin? Does the user see "system" on his default list too?
Yes. It's says "I'm admin". If they want to take themselves out of
admin, they're welcome to, but they won't be able to get back in. They
may also want to make themselves default = "Jason's Lab" today because they're doing research, and tomorrow default = "system" because there's a lot of junk to clean up.
comment:6 Changed 17 years ago by atarkowska
- Resolution set to fixed
- Status changed from new to closed
comment:7 Changed 16 years ago by jmoore
- Milestone changed from Unscheduled to 3.0-Beta2
Root is special user. When you want to create user you need to set default group because cannot be null:
long createExperimenter(@NotNull?, Experimenter experimenter, @NotNull?, ExperimenterGroup? defaultGroup, ExperimenterGroup?... otherGroups);
and the conclusion is that default group has to be set anytime.
I can add condition when user is "root", the field won't be validate.