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
User of remaining capacity limit at the time of the 0 byte, not be able to delete the files on the shared folder. #16187
This is an annoying error when you mainly use ownCloud for working togeter on shared files (Userquota only 10MB) and you can´t delete bigger files any more...
I'd like to increase severity. There are use cases where people share folders with other users, and those users can only work on the shared folders but not have any local files. This is achieved by setting their quota to 0, see #16599 (comment)
When deleting a shared file as recipient, usually that file will land in the recipient's trashbin and also in the owner's trashbin. If the recipient doesn't have enough space, I'd expect the file to not reach the recipient's trashbin, but still reach the one from the owner.
Seems to be a bug.
I don't think @pomu0326's workaround is the right way, because I suspect it might happen if the quota is set to low values like a few bytes, or whenever that user's free space is very low.
Confirmed that it works on stable7 (upcoming 7.0.6).
The file does not appear in the recipient's trashbin, but it appears in the owner's trashbin.
However, the file in the trashbin has a size of zero bytes 😦
On stable8 (upcoming 8.0.4), I cannot delete the file.
This confirms this bug report and is indeed a regression.
Hmmm on master (upcoming 8.1) the behavior is slightly different: I do get a "Could not delete" error, but after refresh the file is gone. But it's not even in the owner's trashbin! 😦
One idea would be to adapt @pomu0326's idea but only apply the quota wrapper if the path is in "/files/". Because we also do not want to apply the quota on "files_encryption", "thumbnails", etc.
Activity
MorrisJobke commentedon May 8, 2015
I guess, this is because of the file should be moved to its trashbin and because of an quota of 0 this isn't possible.
cc @icewind1991 @schiesbn @PVince81
Octopus2 commentedon May 8, 2015
Perhaps a duplicate of this one: owncloud/client#3010
You can´t delete a shared file if the quota is smaler than the filesize
MorrisJobke commentedon May 8, 2015
@nickvergessen Maybe you want to dig into this? :D
Octopus2 commentedon May 26, 2015
@MorrisJobke Any news on this?
This is an annoying error when you mainly use ownCloud for working togeter on shared files (Userquota only 10MB) and you can´t delete bigger files any more...
pomu0326 commentedon May 26, 2015
@Octopus2 Hi, this is my workaround.
However, it does not rest files in the trashbox if the quota is not enough.
/lib/private/files/storage/wrapper/quota.php (origin)
/lib/private/files/storage/wrapper/quota.php (workaround)
PVince81 commentedon May 28, 2015
I'd like to increase severity. There are use cases where people share folders with other users, and those users can only work on the shared folders but not have any local files. This is achieved by setting their quota to 0, see #16599 (comment)
When deleting a shared file as recipient, usually that file will land in the recipient's trashbin and also in the owner's trashbin. If the recipient doesn't have enough space, I'd expect the file to not reach the recipient's trashbin, but still reach the one from the owner.
Seems to be a bug.
I don't think @pomu0326's workaround is the right way, because I suspect it might happen if the quota is set to low values like a few bytes, or whenever that user's free space is very low.
PVince81 commentedon May 28, 2015
@mattrandallbecker mentionned here #16599 (comment) that it used to work in OC 6/7, so this is a regression.
PVince81 commentedon May 28, 2015
It is likely that the regression is due to the fact that the trashbin is now using a storage wrapper since OC 8.0
PVince81 commentedon May 28, 2015
Confirmed that it works on stable7 (upcoming 7.0.6).
The file does not appear in the recipient's trashbin, but it appears in the owner's trashbin.
However, the file in the trashbin has a size of zero bytes 😦
On stable8 (upcoming 8.0.4), I cannot delete the file.
This confirms this bug report and is indeed a regression.
PVince81 commentedon May 28, 2015
@pomu0326 you got a point: from reading your change it looks like the quota storage wrapper was getting applied to the trashbin, which is wrong.
I'll see if I can provide a fix a bit higher in the call stack.
PVince81 commentedon May 28, 2015
not saying that your fix is wrong, but it shows very well what is wrong in the original code 😄
PVince81 commentedon May 28, 2015
Hmmm on master (upcoming 8.1) the behavior is slightly different: I do get a "Could not delete" error, but after refresh the file is gone. But it's not even in the owner's trashbin! 😦
PVince81 commentedon May 28, 2015
This is the call stack that leads to the quota wrapper for trashbin:
Now one thing I don't yet understand is how could this have ever worked ?
I found out that stable7 also wraps the storage, but it doesn't seem to disturb the trashbin in the same way:
Well... it does produce a zero-sized file in the trashbin.
So I could say, basically this was broken in previous versions too, but in a different way...
PVince81 commentedon May 28, 2015
One idea would be to adapt @pomu0326's idea but only apply the quota wrapper if the path is in "/files/". Because we also do not want to apply the quota on "files_encryption", "thumbnails", etc.
PVince81 commentedon May 28, 2015
Fix is here: #16613
pomu0326 commentedon Jun 1, 2015
@PVince81 thank you. I was able to resolve the issue.