core icon indicating copy to clipboard operation
core copied to clipboard

Removing the GroupAdmin from the Group when they are the last member...

Open ghost opened this issue 13 years ago • 5 comments

Expected behaviour

Should remove the user from the group_admin table

Actual behaviour

User is still in the group_admin table

Steps to reproduce

  1. Brand new install - logged in as 'owncloudadmin'
  2. Add new user 'bob' to a new group 'group' from 'owncloud/index.php/settings/users'
  3. Make 'bob' the group admin
  4. Refresh the page
  5. Remove 'bob' from the group
  6. Refresh the page
  7. Now you see the 'Group Admin' column has a bad drop down box for 'bob'
  8. Jump down to your postgres console and you see this
owncloud=> select * from oc_groups;
  gid
-------
 admin

owncloud=> select * from oc_group_admin;
 gid  |  uid
------+-------
 user | bob

Server configuration

Operating system: Ubuntu 12.04 LTS

Web server: Server version: Apache/2.2.22 (Ubuntu)

Database: Postgresql 9.1

PHP version: PHP 5.3.10-1ubuntu3.8

ownCloud version: ownCloud 5.0.13(up to date)

Client configuration

Browser: Chrome

Operating system: Windows 7

Logs

There is nothing significant in the logs.

ghost avatar Nov 07 '13 18:11 ghost

@blizzz can you look into that?

jancborchardt avatar Feb 26 '14 11:02 jancborchardt

i try tomorrow or fri

blizzz avatar Feb 26 '14 21:02 blizzz

I cannot reproduce it with MySQL latest stable5 (soon to be 5.0.15).

@ghost could you try again next week when 5.0.15 was released and see whether the bug still exists?

blizzz avatar Feb 28 '14 16:02 blizzz

We did a ton of improvements in ownCloud 7. I assume this was fixed in the meantime. Please reopen if this still exists

karlitschek avatar Dec 05 '14 22:12 karlitschek

tested with ownCloud 7.0.4. It works.

dttpy avatar Dec 11 '14 16:12 dttpy