aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/DAV
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #47737 from nextcloud/fix/also-allow-unsharing-for-circlesRichard Steinmetz2024-09-101-1/+1
|\ | | | | fix(caldav, carddav): also allow unsharing of circle shares
| * fix(dav): also allow unsharing of circle sharesAnna Larch2024-09-051-1/+1
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | chore: adjust code to adhere to coding standardAnna Larch2024-09-051-5/+5
|/ | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix: make preload custom proterties sharding compatibleRobin Appelman2024-08-281-9/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(dav): Allow apps to get unshares for DAV resourcesJoas Schilling2024-08-262-5/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-254-6/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: Make `ISharedStorage` public API and reuse where possibleFerdinand Thiessen2024-08-121-2/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(caldav): stricter default calendar checksRichard Steinmetz2024-07-221-2/+7
| | | | | | | | | | | Reject calendars that - are subscriptions - are not writable - are shared with a user - are deleted - don't support VEVENTs Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(db): Don't use deprecated 3rdparty constant: ↵Joas Schilling2024-07-191-1/+1
| | | | | | `Doctrine\DBAL\Connection::PARAM_STR_ARRAY` Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-2712-245/+43
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(dav): ACLs for shared addressbooksChristoph Wurst2024-03-211-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(dav): update a principal's schedule-default-calendar-URLRichard Steinmetz2024-02-281-4/+135
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Refactors "substr" calls to improve code readabilityHamid Dehnavi2024-02-231-1/+1
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Check share attributes when downloading versionsLouis Chemineau2024-02-211-4/+16
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* enh(sharing): enable unsharing for sharees for DAV shares (addressbooks and ↵Anna Larch2024-02-153-136/+269
| | | | | | calendars) Signed-off-by: Anna Larch <anna@nextcloud.com>
* Improve view only error messageLouis Chemineau2024-01-101-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Don't query oc_properties for metadata propsLouis Chemineau2023-12-181-2/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-234-6/+6
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-2/+2
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Merge pull request #38610 from fsamapoor/replace_strpos_calls_in_dav_appChristoph Wurst2023-09-173-4/+4
|\ | | | | Refactors "strpos" calls in /apps/dav
| * Fixes "PossiblyNullArgument" Psalm warnings.Faraz Samapoor2023-06-121-1/+1
| | | | | | | | | | Co-authored-by: Thomas Citharel <tcit@tcit.fr> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
| * Refactors "strpos" calls in /apps/dav to improve code readability.Faraz Samapoor2023-06-123-3/+3
| | | | | | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* | preload shares for calendars when listing calendarsRobin Appelman2023-07-262-0/+64
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #38397 from nextcloud/enh/contacts/hide-adressbook-optionDaniel2023-07-181-0/+15
|\ \ | | | | | | enh(contacts): show/hide addressbooks for all
| * | enh(contacts): show/hide addressbooks for allJohannes Merkel2023-07-101-0/+15
| |/ | | | | | | Signed-off-by: Johannes Merkel <mail@johannesgge.de>
* / preload custom properties when propfinding foldersRobin Appelman2023-07-091-2/+42
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(CalDAV/CardDAV): put every method from Cal/CardDAV backends that does ↵Thomas Citharel2023-04-171-10/+15
| | | | | | | | | | | | multiple DB calls in transactions In a lot of methods we're doing read-after-writes (for instance calling updateProperties after touching calendar objects). There's also a lot of deleting methods that do stuff sequentially which could cause trouble. This should avoid this kind of issues. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Fix DAV typesjld31032023-04-051-1/+1
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* assign group share valueMaximilian Martin2023-02-201-1/+1
| | | | Signed-off-by: Maximilian Martin <maximilian_martin@gmx.de>
* Extend ViewOnly DAV plugin to versions endpointVincent Petry2023-01-131-3/+7
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Do not output a warning when a file is not foundCôme Chilliet2022-09-121-6/+1
| | | | | | | This would spam log with warnings from Desktop client doing HEAD on non-existing path to test them. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix copy in view-only modeVincent Petry2022-08-261-0/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix dynamic property creations in test filesCôme Chilliet2022-08-011-1/+1
| | | | | | This fixes warnings in PHP 8.2 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Multiple fixesCarl Schwan2022-07-311-22/+16
| | | | | | | | | | | - 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>
* Fix view-only code after code review commentsVincent Petry2022-07-281-4/+4
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share attribute related tests + code styleVincent Petry2022-07-281-0/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-281-0/+113
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix typos in apps/dav subdirectoryluz paz2022-07-262-2/+2
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./apps/dav` Signed-off-by: luz paz <luzpaz@github.com>
* catch any exception for transaction controlArthur Schiwon2022-07-061-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* DAV custom props: catch Exception and rollback transaction in caseArthur Schiwon2022-07-011-54/+76
| | | | | | | | - before exceptions were not caught, a started transaction might not have been finished - also resolve depractions and use IQueryBuilder Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add typing to Sharing BackendCarl Schwan2022-06-222-64/+36
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Use {$var} instead of ${var} for PHP 8.2 compatibilityCôme Chilliet2022-06-141-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Allow DAV Object propertiesThomas Citharel2022-05-161-12/+58
| | | | | | | | | | | | | | | | | | | The current implementation only saves them as string. It seems they can be more complex than that, and that objects were saved directly. You may find such objects saved in some production databases by executing: ```sql SELECT * from oc_properties where propertyvalue = 'Object'; ``` This commit adds a repair job to clean all of these "broken" properties values, adds a new database column to save the type of the property, and handles converting from and to correct values. Implementation is very similar to SabreDAV's own PDO backend: https://github.com/nextcloud/3rdparty/blob/4921806dfb1c5c309eac60195ed34e2749baf3c1/sabre/dav/lib/DAV/PropertyStorage/Backend/PDO.php Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Add known dav properties to ignore listJulius Härtl2022-04-211-0/+22
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Convert properties value to string before passing them to databaseCôme Chilliet2022-01-201-0/+5
| | | | | | | This avoids an error when passing a complex property to PROPPATCH under PHP >= 7.4. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Change return type to correct typeAnna Larch2021-10-141-1/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* use specific email getter where necessaryArthur Schiwon2021-09-091-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Allow certain custom DAV props to be readable by everyoneChristoph Wurst2021-06-081-14/+57
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>