You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deleting user with provisioning API can take a long time #21249
I'm afraid it isn't fixed. I think you might have misunderstood the description. I'll try to explain it in another way. :)
The ownCloud version used is 8.1.4.
The problem is that deleting a user who has many files in his/her account takes a long time. It would be better if the actual "delete" operation was a background task and the API would immediately return an OK. See the examples below.
User with just a few files
[me@host ~]$ time curl -X DELETE --user username:password https://my.owncloud.install/ocs/v1.php/cloud/users/foo
<?xml version="1.0"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message/>
</meta>
<data/>
</ocs>
real 0m0.133s
user 0m0.010s
sys 0m0.000s
User with many files
[me@host ~]$ time curl -X DELETE --user username:password https://my.owncloud.install/ocs/v1.php/cloud/users/bar
<html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.6.2</center>
</body>
</html>
real 6m0.046s
user 0m0.010s
sys 0m0.013s
Since we now have disable I would think that it should be put on disable first and then be deleted - so what you wanted is now reachable without changing code. Closing, please comment/reopen if I am wrong.
Activity
PVince81 commentedon Dec 17, 2015
@christopheg ownCloud version ?
PVince81 commentedon Dec 17, 2015
What you described under "Better would be" was implemented in OC >= 8.1.
The slow behavior was in OC < 8.1.
PVince81 commentedon Dec 17, 2015
Ref #14644
gerryd commentedon Dec 18, 2015
Hi Vincent,
I'm afraid it isn't fixed. I think you might have misunderstood the description. I'll try to explain it in another way. :)
The ownCloud version used is 8.1.4.
The problem is that deleting a user who has many files in his/her account takes a long time. It would be better if the actual "delete" operation was a background task and the API would immediately return an OK. See the examples below.
User with just a few files
User with many files
PVince81 commentedon Dec 18, 2015
Ah, that's more clear.
When I saw "DELETE" I directly thought Webdav DELETE.
I'll adjust the subject.
[-]DELETE can take a long time[/-][+]Deleting user with provisioning API can take a long time[/+]hodyroff commentedon Mar 28, 2017
Since we now have disable I would think that it should be put on disable first and then be deleted - so what you wanted is now reachable without changing code. Closing, please comment/reopen if I am wrong.
lock commentedon Aug 2, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.