summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "[stable30] fix: Handle copy of folders containing live photos""Louis2025-03-051-67/+117
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files): properly forward open params from short urlsskjnldsv2025-02-191-21/+27
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: explicitly ignore nested mounts when transfering ownershipRobin Appelman2025-02-051-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files): Harden thumbnail endpointbackport/50430/stable30Ferdinand Thiessen2025-01-261-6/+17
| | | | | | | | - Catch all thrown exceptions and handle in such a way you do not get information about forbidden files. - Resepect download permissions of shares. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Transfer incomming shares first, do not delete non-migratable onesCôme Chilliet2024-12-191-13/+10
| | | | | | | | | | Canceling the previous add of deletion of invalid shares in transferownership because in some cases it deletes valid reshares, if incoming shares are not transfered on purpose. Inverting the order of transfer between incoming and outgoing so that reshare can be migrated when incoming shares are transfered. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: delete re-shares when deleting the parent shareLuka Trovic2024-12-191-0/+3
| | | | | | | | Note: Removed part about fix command from original PR Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> (cherry picked from commit 42181c2f490025860e22907255b6917583c798af)
* Revert "[stable30] fix: Handle copy of folders containing live photos"revert-49650-backport/49293/stable30Louis2024-12-121-117/+67
|
* fix: Copying a live photo to a folder with a conflicting mov fileLouis Chemineau2024-12-051-14/+22
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Handle copy of folders containing live photosLouis Chemineau2024-12-051-56/+98
| | | | | | | We need to recursively look for live photos in the folder, and then handle them as usual. Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: smuggle storage id to metadata insert queriesRobin Appelman2024-12-051-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(BackgroundJobs): Adjust intervals and time sensitivitiesbackport/48600/stable30provokateurin2024-11-254-16/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #48618 from nextcloud/backport/48597/stable30Benjamin Gaussorgues2024-10-301-0/+2
|\
| * feat(transfer-ownership): Improve verbose output of commandCôme Chilliet2024-10-151-0/+2
| | | | | | | | | | | | Makes debbuging way easier Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #48746 from nextcloud/backport/46124/stable30John Molakvoæ2024-10-291-3/+5
|\ \
| * | refactor: Inject IRootFolderbackport/46124/stable30Christopher Ng2024-10-161-4/+4
| | | | | | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
| * | fix: Fix "Unknown path" error when source user `files` folder has not been ↵Christopher Ng2024-10-161-0/+2
| |/ | | | | | | | | | | initialized Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | fix: add notification icon for transfer ownershipMaksim Sukharev2024-10-171-0/+4
| | | | | | | | Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
* | fix: do not duplicate existing entityMaksim Sukharev2024-10-171-8/+1
| | | | | | | | | | | | - this reverts 1e8048abee1745bab648dba5bf96f956c718e4e3 Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
* | fix: dismiss notification only after transfer bg job createdMaksim Sukharev2024-10-172-5/+20
|/ | | | | | - do not create 'denied' notification if bg job exists Signed-off-by: Maksim Sukharev <antreesy.web@gmail.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>
* perf(files): Do not block files page load with server-side favorites retrievalChristopher Ng2024-08-291-15/+0
| | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: Backport to 30Louis Chemineau2024-08-281-10/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: Apply php:cs recommendationsLouis Chemineau2024-08-281-2/+2
| | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> [skip ci]
* fix: implement sharding compatible cleanup for various bitsRobin Appelman2024-08-282-43/+131
| | | | 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: improve cleanup of tags/commentsRobin Appelman2024-08-191-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>