Bug 524977
Summary: | using ipa group-add-member listing users already in the group causes a internal error | ||
---|---|---|---|
Product: | [Retired] freeIPA | Reporter: | Michael Gregg <mgregg> |
Component: | ipa-admintools | Assignee: | Rob Crittenden <rcritten> |
Status: | CLOSED UPSTREAM | QA Contact: | Chandrasekar Kannan <ckannan> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | unspecified | CC: | benl, dpal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-03-28 09:33:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 431020 |
Description
Michael Gregg
2009-09-22 20:53:46 UTC
Can't reproduce anymore. If someone is trying to add a user that is already present, the command will just ignore this and report the number of users actually added (in this case zero). Does it report back that the user is already a member and return a non-zero return code? If not, than it is not user friendly to the admin. Pavel, I think this one might be a candidate for an additional attribute in the return values when Jason converts it to a dict. Not sure exactly the format we'd return things in, we'd have to think about the best way for the client to handle it. It does report objects that failed to add/remove themselves: # ./ipa group-add-member group1 --users=admin,pzuna --groups=ahoj ----------------- group-add-member: ----------------- Group: group1 member groups: ahoj member users: pzuna, admin ---------------- 3 members added. ---------------- # ./ipa group-add-member group1 --users=admin,mnagy --groups=ahoj groups failed: ahoj users failed: admin ----------------- group-add-member: ----------------- Group: group1 member groups: ahoj member users: pzuna, admin, mnagy --------------- 1 member added. --------------- It doesn't exit with non-zero however. Maybe we should discuss exit codes again, because last time (just checked), we didn't reach any conclusive agreement. I think that we should at least make a distinction between success/partial-success/epic-fail. Partial success might be a truncated search result and only some members added/removed. |