Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

(in iRODS 4.3.2) an iRODSGroup cannot be removed  #539

Copy link
Copy link

Description

@d-w-moore
Issue body actions

as of iRODS 4.3.2 (specifically the #7380 fix ) v2.0.0 can no longer remove groups due to the new differentiation required in the user/group parameter, in the rmgroup command:

>>> g = session.groups.create('mygroup')
>>> g.remove()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/var/lib/irods/python-irodsclient/irods/user.py", line 93, in remove
    self.manager.remove(self.name)
  File "/var/lib/irods/python-irodsclient/irods/manager/user_manager.py", line 103, in remove
    response = conn.recv()
  File "/var/lib/irods/python-irodsclient/irods/connection.py", line 152, in recv
    raise get_exception_by_code(msg.int_info, err_msg)
irods.exception.CAT_INVALID_USER: None

The solution needs to allow session.<MANAGER>.remove(groupName) with <MANAGER> being either users or groups. It should also function for earlier iRODS servers, ie ["rm","group"] is necessary/appropriate in the rsGeneralAdmin rmgroup API for iRODS 4.3.2+, but for iRODS 4.3.1 and previous servers, might cause an error . For the older servers, ["rm","user"] is needed even if the "username" being removed is that of a Group.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.