aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* chore: adjust code to adhere to coding standardAnna Larch2024-09-052-2/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(transfer-ownership): Improve comments according to code reviewCôme Chilliet2024-09-051-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(transfer-ownership): Correctly react to encrypted filesCôme Chilliet2024-09-051-20/+43
| | | | | | | | For E2EE encrypted files, we abort the transfer. For SSE encrypted files, we abort only if not using master key. Also fixed the check for when the path to a single file is used. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Apply php:cs recommendationsLouis Chemineau2024-08-281-2/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: implement sharding compatible cleanup for various bitsRobin Appelman2024-08-282-53/+135
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: adjust systemtag orphan cleanup query to work with shardingRobin Appelman2024-08-281-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: make background scan job compatible with shardingRobin Appelman2024-08-281-12/+58
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf(files): Do not block files page load with server-side favorites retrievalChristopher Ng2024-08-271-15/+0
| | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Christopher Ng <chrng8@gmail.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-2524-79/+79
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* perf: improve cleanup of tags/commentsRobin Appelman2024-08-151-9/+6
| | | | | | delete entire chunk at once instead of one-by-one Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor(files): Drop unneeded initial stateFerdinand Thiessen2024-08-141-51/+0
| | | | | | | The initial state is no longer used, it was only used in legacy UI and in the f2v rewrite it was only used for the `id` which can be loaded just from the URL. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): Update openapiChristopher Ng2024-08-082-6/+10
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Allow specifying path and depth for returned folder treeChristopher Ng2024-08-081-44/+37
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): When redirecting to a file (internal link) then it should open ↵Ferdinand Thiessen2024-08-031-0/+2
| | | | | | by default Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): Update openapi specChristopher Ng2024-08-012-1/+18
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Allow toggling folder treeChristopher Ng2024-08-011-1/+7
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Implement endpoint to retrieve a user's folder treeChristopher Ng2024-08-012-25/+95
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #46807 from nextcloud/refactor/files/security-attributesKate2024-08-017-73/+56
|\
| * refactor(files): Replace security annotations with respective attributesprovokateurin2024-07-277-73/+56
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | chore: Remove deprecated legacy search backendJulius Härtl2024-08-011-7/+0
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #46672 from nextcloud/fix/preview-invalid-idAndy Scherzinger2024-07-251-0/+4
|\ | | | | Avoid using partial file info as valid one
| * fix: Ignore preview requests for invalid file idsJulius Härtl2024-07-221-0/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | fix: PHP formattingElizabeth Danzberger2024-07-252-1/+8
| | | | | | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* | feat: Add support for filling fields to backend componentsElizabeth Danzberger2024-07-251-2/+12
|/ | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* feat(files): Allow to configure Windows filename compatibility in the settingsFerdinand Thiessen2024-07-176-0/+202
| | | | | | | | This adds an admin setting to toggle Windows filename compatibility. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: Remove deprecated `Util` function for filename validation to ↵Ferdinand Thiessen2024-07-161-44/+20
| | | | | | `FilenameValidator` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Add `forbidden_filename_basenames` config optionFerdinand Thiessen2024-07-151-1/+2
| | | | | | | | This allows to configure forbidden filenames (the full filename like `.htaccess`) and also forbidden basenames like `com0` where `com0`, `com0.txt` and `com0.tar.gz` will match. We need this as only using basenames was too restrictive and will cause problems on some systems when updating. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Add new forbidden filename options to CapabilitiesFerdinand Thiessen2024-07-111-9/+12
| | | | | | | | | Allow clients to access the new filename validation options and make frontend name validation possible. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #46059 from nextcloud/perf/remove_useless_sessionBenjamin Gaussorgues2024-06-271-3/+0
|\
| * perf(session): remove useless session openBenjamin Gaussorgues2024-06-241-3/+0
| | | | | | | | | | | | | | `UseSession` isn’t used in theses controllers. Not using it should avoid a few session locks. Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | feat(notifications): Migrate server INotifiers to new exceptionsJoas Schilling2024-06-251-4/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(files): Rename openFileInfo to fileInfoLouis Chemineau2024-06-191-1/+1
| | | | | | And check if openFile is set in the URL before opening a file. Signed-off-by: Louis Chemineau <louis@chmn.me>
* perf: Tell browsers to cache storage stats endpoint as it is cachedJulius Härtl2024-06-181-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(files): Properly handle denied ownership transfersFerdinand Thiessen2024-06-142-29/+34
| | | | | | | | | | | | | When the receiver denies the transfer the notification handler was missing, so no notification was created for the transfer owner. But also the internal notification was created two times: 1. When rejecting the transfer 2. By the reject function when dismissing the notification This is fixed by only relying on the dismiss function. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): Use receiving users language for the ownership transfer target ↵Ferdinand Thiessen2024-05-291-8/+13
| | | | | | folder Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-2967-1372/+160
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files): Fix ownership transfer encrypted files detectionCôme Chilliet2024-04-301-1/+1
| | | | | | Discovered by psalm update Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files): Use string array instead of string for forbidden charactersFerdinand Thiessen2024-04-291-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Use OCP\Util::getForbiddenFileNameChars instead of direct access ↵Ferdinand Thiessen2024-04-291-4/+2
| | | | | | to system config Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Also restore shares after ownership transfer for object storageFerdinand Thiessen2024-04-181-38/+73
| | | | | | | | | | When a file is moved between different storages then the file id is not (always) preserved. This means the file id has to be adjusted for all shares. So in case the file id does not exist anymore we try to find the new file id based on the target path of the transfer and the path suffix of the share. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: cleanup filecache_extended items by defaultRobin Appelman2024-04-151-2/+2
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: remove orphaned entries from filecache_extendedDaniel Kesselberg2024-04-151-1/+37
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-025-10/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Add iconSvgInline to TemplateFileCreatorChristopher Ng2024-03-201-0/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Merge pull request #41973 from nextcloud/files-scan-path-optionJohn Molakvoæ2024-03-151-1/+1
|\
| * use correct mode constant of files:scan's --path optionRobin Appelman2024-02-241-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(files): Do not require files_trashbin in live photo sync listenerLouis Chemineau2024-03-143-134/+70
| | | | | | | | | | | | Fix https://github.com/nextcloud/server/issues/43299 Signed-off-by: Louis Chemineau <louis@chmn.me>
* | feat(files): copy live photosMaxence Lange2024-03-082-17/+65
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | feat(files): add search plugin to search in specified folder exclusivelyfenn-cs2024-03-074-0/+75
| | | | | | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* | perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-046-29/+23
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>