aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Files
Commit message (Collapse)AuthorAgeFilesLines
* fix: Replace all usage of OC_Template by the new APICôme Chilliet2025-03-061-2/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-132-2/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert "fix(dav): Always respond custom error page on exceptions"Daniel Kesselberg2024-11-221-44/+38
| | | | | | This reverts commit 9992e7d4395a773fec7148cf5b4111f894cb40b7. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Revert "fix: Drop unnecessary exit"Daniel Kesselberg2024-11-221-0/+1
| | | | | | This reverts commit d2bf3613f6c9210a720bebdcf82284bbfc604319. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(dav): file request guest nickname encodingskjnldsv2024-11-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-7/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-152-3/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Use more gender neutral languageprovokateurin2024-10-141-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Drop unnecessary exitLouis Chemineau2024-09-171-1/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(dav): Always respond custom error page on exceptionsLouis Chemineau2024-09-051-38/+44
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore(integration): add file request testsskjnldsv2024-07-191-6/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): add public name prompt for files requestsskjnldsv2024-07-181-11/+42
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): allow uploading to subfolders in File requestsskjnldsv2024-07-181-5/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-277-148/+22
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(dav): Support multiple scopes in DAV searchLouis Chemineau2024-04-171-17/+74
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): allow any throwable in logExceptionVarun Patil2023-12-041-2/+2
| | | | | | | If a TypeError is passed here, it in turn causes a TypeError which kills the rendering of the error page. Signed-off-by: Varun Patil <varunpatil@ucla.edu>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-3/+2
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Fix is-define operatorLouis Chemineau2023-11-221-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* implements search on null/notnull metadataMaxence Lange2023-11-221-9/+22
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* moving metadataqueryMaxence Lange2023-11-131-1/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Support getting and setting metadata in DAV requestsLouis Chemineau2023-11-081-23/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* IFilesMetadataMaxence Lange2023-11-071-42/+60
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Make sure to not pass null to DateTime::createFromFormatCôme Chilliet2022-11-141-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* add a limit to the amount of operators a client can add to a search queryRobin Appelman2022-09-081-0/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix an issue with the search backend updateCarl Schwan2022-04-141-10/+10
| | | | | | And update autoloader Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add a metadata service to store file metadataCarl Schwan2022-04-132-16/+49
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #27635 from nextcloud/fix/datetime-constantsPytal2021-06-231-1/+1
|\ | | | | Fix usage of DateTime constants
| * Move DateTime::ATOM to DateTimeInterface::ATOMChristoph Wurst2021-06-231-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | allow setting offset for queries not limited to the users home storageRobin Appelman2021-06-221-3/+1
|/ | | | | | multi-storage offset is cheap (enough) now Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-11/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-183-3/+3
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-295-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code according to PSR2Christoph Wurst2020-04-101-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-105-6/+2
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-313-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Sabre/DAV 4.0: beforeMethod is now beforeMethod:*Georg Ehrke2020-03-272-2/+2
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use core templates for displaying dav errors in the browserArthur Schiwon2020-03-201-3/+9
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix dav browser error page not styledArthur Schiwon2020-03-191-0/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add offset for home limited searchesRoeland Jago Douma2019-12-101-1/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-057-7/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow filtering the search results to the users home storageRobin Appelman2019-12-031-7/+75
| | | | | | | | | | | | | | | | | | | | This is done by adding a ```xml <d:eq> <d:prop> <oc:owner-id/> </d:prop> <d:literal>$userId</d:literal> </d:eq> ``` clause to the search query. Searching by `owner-id` can only be done with the current user id and the comparison can not be inside a `<d:not>` or `<d:or>` statement Signed-off-by: Robin Appelman <robin@icewind.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-224-2/+5
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* cast timestamps older than unix epoch to 0Christian2018-08-271-1/+1
| | | This change solves issues #10870, which is caused by method castValue of class FileSearchBackend: It casts the timestamps older than the unix epoch to false., see my comment https://github.com/nextcloud/server/pull/10835#discussion_r212806153.
* disallow negative mtime in dav searchRobin Appelman2018-08-241-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix lazy search backendRobin Appelman2018-07-021-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix search related results in OPTIONS requestsRobin Appelman2018-06-281-0/+72
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>