Skip to content

the user is gone, userExists will not bring him back. But the user's …#16890

Merged
DeepDiver1975 merged 2 commits into
masterfrom
fix-16588
Jun 18, 2015
Merged

the user is gone, userExists will not bring him back. But the user's …#16890
DeepDiver1975 merged 2 commits into
masterfrom
fix-16588

Conversation

@blizzz

@blizzz blizzz commented Jun 11, 2015

Copy link
Copy Markdown
Contributor

…folder needs to be deleted anyway

Fixes #16588 (see #16830 (comment) for what's going in).

@MorrisJobke i keep this wip to consider whether unit test is possible. the exisiting ones work either way. Done.

@DeepDiver1975

Copy link
Copy Markdown
Member

@blizzz is this ready to review? Has the developing label attached - confudes 😕 - THX

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and works 👍

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@blizzz

blizzz commented Jun 17, 2015

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 Added unit test, now we are good.

@jvillafanez @davitol mind testing?

@blizzz

blizzz commented Jun 17, 2015

Copy link
Copy Markdown
Contributor Author

or @cdamken

@MorrisJobke

Copy link
Copy Markdown
Contributor
00:54:30.493 + ./autotest.sh oci
00:54:30.496 Using PHP executable /home/vagrant/.phpenv/shims/php
00:54:30.618 Using database oc_autotest6
00:54:30.618 Setup environment for oci testing ...
00:54:30.622 Fire up the oracle docker
00:54:31.138 Waiting 60 seconds for Oracle initialization ... 
00:55:31.131 Installing ....

Known problem AFAIK - cc @DeepDiver1975

@ghost

ghost commented Jun 18, 2015

Copy link
Copy Markdown

🚀 Test PASSed.🚀
chuck

@jvillafanez

Copy link
Copy Markdown
Member

I've followed the next steps:

  1. Delete the user from the LDAP
  2. Check that the user doesn't appear in the user page (in "everyone" and in any of the groups where the user belongs previously). I don't think I have any cache in the server
  3. At this point the user folder still remains in ownCloud
  4. Use ./occ ldap:check-user to check for the delete user. This should answer the user doesn't exist
  5. Use ./occ user:delete to delete the user

After all these steps, the user data is removed from ownCloud. 👍

DeepDiver1975 added a commit that referenced this pull request Jun 18, 2015
the user is gone, userExists will not bring him back. But the user's …
@DeepDiver1975
DeepDiver1975 merged commit a04cb82 into master Jun 18, 2015
@DeepDiver1975
DeepDiver1975 deleted the fix-16588 branch June 18, 2015 10:51
@MorrisJobke

Copy link
Copy Markdown
Contributor

@blizzz To which version should this be backported? stable8 and stable7? #16588 was reported on stable7

cc @karlitschek for the approval

@blizzz

blizzz commented Jun 18, 2015

Copy link
Copy Markdown
Contributor Author

Yes, to both 7 and 8.

@karlitschek

Copy link
Copy Markdown
Contributor

@MorrisJobke Backport is fine with me.

@MorrisJobke

Copy link
Copy Markdown
Contributor

@blizzz Can you create the backport PRs?

blizzz added a commit that referenced this pull request Jun 18, 2015
the user is gone, userExists will not bring him back. But the user's folder needs to be deleted anyway

delete user test to take getHome into account to ensure it is also deleted subsequently
blizzz added a commit that referenced this pull request Jun 18, 2015
the user is gone, userExists will not bring him back. But the user's folder needs to be deleted anyway

delete user test to take getHome into account to ensure it is also deleted subsequently

Conflicts:
	apps/user_ldap/tests/user_ldap.php
@blizzz

blizzz commented Jun 18, 2015

Copy link
Copy Markdown
Contributor Author

Backport to 7: #17034
Backport to 8: #17033

MorrisJobke added a commit that referenced this pull request Jun 23, 2015
MorrisJobke added a commit that referenced this pull request Jun 23, 2015
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[7.0.5] LDAP user can not be deleted.

6 participants