Add webdav trash bin endpoint#34690
Conversation
082bc93 to
6a9e284
Compare
Codecov Report
@@ Coverage Diff @@
## master #34690 +/- ##
============================================
- Coverage 65.25% 65.14% -0.11%
- Complexity 18458 18507 +49
============================================
Files 1207 1213 +6
Lines 69895 70022 +127
Branches 1280 1280
============================================
+ Hits 45608 45617 +9
- Misses 23915 24033 +118
Partials 372 372
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #34690 +/- ##
============================================
- Coverage 65.68% 65.25% -0.44%
- Complexity 18775 18831 +56
============================================
Files 1222 1231 +9
Lines 70932 71095 +163
Branches 1289 1289
============================================
- Hits 46594 46393 -201
- Misses 23960 24324 +364
Partials 378 378
Continue to review full report at Codecov.
|
6a9e284 to
3e05eb1
Compare
d3e2256 to
a01979c
Compare
55e30d7 to
26d8eec
Compare
I'm not too happy with this .... we will not get the etag back in the move header - which is required by the clients. Maybe we need to add special logic here. |
| $this->server->httpResponse->setHeader('ETag', $eTag); | ||
| } | ||
| } catch (NotFound $ex) { | ||
| // nothing to do then .... |
There was a problem hiding this comment.
destination will be /trash-bin/$user/restore/$original which is not know because the restore folder will not list the content.
Maybe we do a
mv trash-bin/$user/item/$fileId files/$user/$originalLocation
|
As per discussion with @butonic we will go for the second approach which will give us more flexibility in terms of the restore location and naming. |
|
I haven't looked at the code code but this sounds dangerous, what if I have a user called
Assuming user is called 'admin'
|
|
OK, seems like this is adressed, the description of #35636 looks without the |
Description
We want a WebDAV API as discussed in #15646
This is how it looks like:
Related Issue
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: