Côme Chilliet
4f3b323fba
Move dav utils functions to OCP\Files\DavUtil
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-30 09:58:12 +02:00
Côme Chilliet
b3cd9b5573
Move Dav fileid and permissions logic into OCP\Util to be able to use it for BulkUpload
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-29 13:55:08 +02:00
Carl Schwan
f8b13ecd60
Merge pull request #32363 from nextcloud/cleanup/remove-long-deprecated-classes
...
Remove OCP\App and OCP\BackgroundJob
2022-08-08 17:05:11 +02:00
Carl Schwan
458c2fa297
Remove OCP\App and OCP\BackgroundJob
...
Both deprecated since NC 23
IAppManager is the replacement for OCP\App unfortunately it can't be
dependency injected in classes used by the installed otherwise the
database connection is initialised too early
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-01 09:46:40 +02:00
Carl Schwan
7b723813ce
Multiple fixes
...
- Fix tests
- Use non deprecated event stuff
- Add a bit of type hinting to the new stuff
- More safe handling of instanceOfStorage (share might not be the first
wrapper)
- Fix resharing
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-07-31 19:37:59 +02:00
Vincent Petry
2ee659e547
Fix view-only code after code review comments
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-07-28 16:53:24 +02:00
Vincent Petry
92e60e3858
Add nc:share-attributes Webdav property
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-07-28 16:53:23 +02:00
Vincent Petry
a95c19e14b
Add share attributes + prevent download permission
...
Makes it possible to store download permission
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-07-28 16:53:22 +02:00
luz paz
d4637ef4d8
Fix typos in apps/dav subdirectory
...
Found via `codespell -q 3 -S l10n -L jus ./apps/dav`
Signed-off-by: luz paz <luzpaz@github.com>
2022-07-26 17:40:10 -04:00
Carl Schwan
046357ec75
Fix type error in Sabre/Connector/Directory
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-14 13:01:06 +02:00
Vincent Petry
804ee11803
Merge pull request #31029 from nextcloud/expose-extra-emails-in-dav
...
Expose additional emails in {DAV:}alternate-URI-set
2022-06-10 16:56:37 +02:00
Joas Schilling
8e3b30f388
Don't spam the log with fatals when maintenance mode is enabled or an upgrade has to be done
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-06-10 00:36:52 +02:00
Carl Schwan
1b426eda44
Make X-HAS-{MD5/SHA256} opt-in
...
This is not always needed and slow down the upload
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-01 10:59:04 +02:00
Carl Schwan
3ada267a02
Fix return type and make type stricter
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-24 12:05:17 +02:00
Thomas Citharel
190a71ecf9
Expose additional emails in {DAV:}alternate-URI-set
...
This allows iMip invitations to be send with an alternative email as
"Reply-To" field.
Closes #27201
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-17 15:11:36 +02:00
Carl Schwan
f7be76125f
Fix more psalm issues
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-16 11:05:54 +02:00
Carl Schwan
829490ab7a
Cleanup dav
...
- Remove unused class AppEnabledPlugin
- Add more type hinting when possible
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-05 22:03:59 +02:00
Louis
7ccfddbe64
Merge pull request #31963 from nextcloud/feat/use_setting_in_dav_search
...
Use share setting in DAV search
2022-05-04 13:38:03 +02:00
Côme Chilliet
e2531f8503
Migrate dav application from ILogger to LoggerInterface
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-05-02 10:52:43 +02:00
Robin Appelman
54ac585bc5
add logging of failed quota info
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-22 15:29:30 +02:00
Louis Chemineau
e8ab298d2c
Use email settings in DAV search
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-04-19 16:23:08 +02:00
Louis Chemineau
70c56b411e
Use share setting in DAV search
...
shareapi_restrict_user_enumeration_full_match_ignore_second_display_name was introduced to ignore second display name during search from the share panel. But this setting was not respected by search from the calendar application. This fix it.
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-04-19 12:51:57 +02:00
Vincent Petry
0824f440f0
Merge pull request #31886 from nextcloud/bugfix/noid/principal-search-case-insensitive-dn
...
Principal search by display name case insensitive
2022-04-14 15:07:25 +02:00
Carl Schwan
1c7ecfc544
Fix an issue with the search backend update
...
And update autoloader
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-14 12:11:02 +02:00
Carl Schwan
7817845538
Add a metadata service to store file metadata
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-13 14:06:29 +02:00
Vincent Petry
1bac5e2cbe
Principal search by display name case insensitive
...
Adjust principal search to be case insensitive even with exact match.
This aligns the behavior to how the search also works in
Collaborators/UserPlugin
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-04-08 10:20:24 +02:00
blizzz
fb7f65a687
Merge pull request #25747 from nextcloud/XAccelBuffering
...
Add X-Accel-Buffering header to downloads
2022-04-07 15:08:21 +02:00
Robin Appelman
5e69f98c16
sh
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 18:08:13 +02:00
Robin Appelman
ae7205f550
use existing node in SharesPlugin
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 15:46:50 +02:00
Robin Appelman
151c800397
allow reusing known folder info when getting directory contents
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 14:40:34 +02:00
Robin Appelman
9b1abd6fac
save filesystem node in dav node
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 14:40:31 +02:00
John Molakvoæ
47cc5a9405
Merge pull request #29510 from nextcloud/backport/27378/master
2022-04-04 22:15:01 +02:00
Robin Appelman
ff666e648a
Add dav plugin to trigger recalculating of checksums
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-31 07:44:13 +00:00
Robin Appelman
5ae6cefd57
dont re-query fileinfo when getting dav quota
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-28 15:57:28 +02:00
Robin Appelman
a617e1e711
fix check if dav root is folder
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-24 17:01:52 +01:00
Robin Appelman
c80ba69b7a
dont setup full fs after dav auth
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-03-24 17:00:57 +01:00
Julien Veyssier
71a9ebc754
add optional WebDav propfind properties to show number of folders/files inside a folder
...
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-03-19 21:22:56 +01:00
Robin Appelman
8b22a463e9
Merge pull request #31266 from nextcloud/root-setup-mountprovider
...
move root mount setup to mountproviders
2022-03-04 13:44:05 +00:00
Christopher Ng
67ec9813e3
Make Sabre File exception messages translatable
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-01 23:29:33 +00:00
Robin Appelman
ec15020777
also handle expired pre-write shared lock on dav upload when not using part files
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-25 16:33:27 +01:00
Louis Chemineau
bc2c02f451
Wrap S3 multipart upload exception
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-02-16 14:56:14 +01:00
Thomas Citharel
46e9f6d0c5
Fix typo in DAV namespace registration
...
See b0afba6d65/sabre/dav/lib/DAV/Xml/Service.php (L43)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-02-14 20:58:29 +01:00
Robin Appelman
c712987878
send request id in response header
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-02-01 14:24:01 +01:00
Unpublished
854890a734
Add X-Accel-Buffering header to downloads
...
Signed-off-by: Unpublished <unpublished@gmx.net>
2022-01-17 08:17:12 +00:00
Louis Chemineau
69b8044b8f
Set the file's mtime from the headers in bulk upload
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-11 17:10:14 +01:00
John Molakvoæ
66ca9baed2
Merge pull request #29948 from nextcloud/enh/webdav-creationdate
2021-12-28 10:13:38 +01:00
John Molakvoæ
5223b0b611
Prevent writing invalid mtime
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-12-07 09:40:23 +01:00
Julius Härtl
01be1447be
Expose DAV:creationdate for propfind/proppatch
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-29 11:25:48 +01:00
Vincent Petry
99f600270e
Merge pull request #29864 from nextcloud/bugfix/noid/dav-propfind-ctime
...
Allow to fetch the creation time of folders
2021-11-24 11:20:12 +01:00
Julius Härtl
a632ce35f5
Allow to fetch the creation time of folders
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-11-23 16:55:33 +01:00