summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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): Also restore shares after ownership transfer for object storageFerdinand Thiessen2024-04-181-14/+52
| | | | | | | | | 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>
* Fix preview service workerGit'Fellow2024-01-062-0/+3
| | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Update ViewControllerTest.php Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Update ViewController.php Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(files): Fix legacy files list sortingFerdinand Thiessen2023-08-191-3/+3
| | | | | | | The sorting was not saved since files2vue changes in Nextcloud 27, as a new API endpoint was introduced and the old one was dropped without adjusting the legacy file list to use it. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* add utility command for object store objectsRobin Appelman2023-07-044-0/+352
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #37971 from nextcloud/info-file-getRobin Appelman2023-05-103-0/+291
|\ | | | | Add commands for basic file actions
| * minor fixes for get/putRobin Appelman2023-05-092-6/+19
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add command to write a fileRobin Appelman2023-05-043-2/+84
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * move get/delete commands to files namespace, make get take the output as ↵Robin Appelman2023-05-042-0/+196
| | | | | | | | | | | | argument instead of option Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add an error counterCôme Chilliet2023-05-041-20/+17
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Only show error stack trace on very verbose levelCôme Chilliet2023-05-021-6/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Do not stop at the first PHP error/warning in files:scanCôme Chilliet2023-04-271-11/+15
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files): Don't throw an error when guests access the controllerJoas Schilling2023-04-192-16/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(files): add view config service to store user-config per viewJohn Molakvoæ2023-04-184-49/+218
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #37625 from nextcloud/bugfix/noid/transfer-file-new-userJulius Härtl2023-04-111-0/+3
|\ | | | | fix: Always create user directory when transfering files to new users
| * fix: Always create user directory when transfering files to new usersJulius Härtl2023-04-061-0/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add type hints for mappersjld31032023-04-072-0/+6
|/ | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* feat(files): implement sorting per viewJohn Molakvoæ2023-04-062-16/+23
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat(files): sortingJohn Molakvoæ2023-04-062-1/+7
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* perf(files): fetch previews faster and cache properlyJohn Molakvoæ2023-04-061-0/+20
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* better error messages if the users home is not writable during scanningRobin Appelman2023-04-051-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-082-1/+2
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Merge pull request #36904 from ↵Joas Schilling2023-03-061-9/+6
|\ | | | | | | | | nextcloud/bugfix/noid/fix-controller-setup-for-guests fix(files): Fix controller setup for guests
| * fix(files): Fix controller setup for guestsJoas Schilling2023-02-281-9/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Implement file reference wigetJulius Härtl2023-03-022-0/+42
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Revert "fix(performance): Do not set up filesystem on every call"Joas Schilling2023-02-211-62/+0
|
* feat(directediting): Allow opening by file idJulius Härtl2023-02-202-5/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not set up filesystem on every callAnna Larch2023-02-171-0/+62
| | | | | | Also remove old Oc_FileChunking logis that produced GC- collectable chunks Signed-off-by: Anna Larch <anna@nextcloud.com>
* Revert the token scope to not end up with storing the user used in the sessionJulius Härtl2023-02-171-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* remove explicit setup when getting storage infoRobin Appelman2023-02-081-5/+0
| | | | | | | | the implicit setup gets enough data without having to do a full setup. Saves having to do a full fs setup for the files webui template Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #35935 from EWouters/patch-1Simon L2023-01-231-1/+2
|\ | | | | [Fix]: scan-app-data conversion
| * [Fix]: scan-app-data conversionEWouters2023-01-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Adapted from sugestions by @Hiyoal in #34283 and @st3iny in #35935. See https://github.com/nextcloud/server/issues/34283#issuecomment-1288075064 and https://github.com/nextcloud/server/pull/35935#discussion_r1059905594. Closes #34283. Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: EWouters <6179932+EWouters@users.noreply.github.com>
* | feat(files): Quota in navigationJohn Molakvoæ2023-01-173-70/+25
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | Fix favourite openingJohn Molakvoæ2023-01-042-6/+6
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | Fixing testsJohn Molakvoæ2023-01-043-14/+13
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | Add component testingJohn Molakvoæ2023-01-042-6/+7
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | Port settings to ModalJohn Molakvoæ2023-01-044-53/+212
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | Port Files navigation to vueJohn Molakvoæ2023-01-043-32/+32
|/ | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Do not setup a session when not required on WebDAV requestsJulius Härtl2022-12-211-0/+1
| | | | | | | | | | If basic auth is used on WebDAV endpoints, we will not setup a session by default but instead set a test cookie. Clients which handle session cookies properly will send back the cookie then on the second request and a session will be initialized which can be resued for authentication. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #34807 from nextcloud/fix/compute-notification-parsed-subjectCôme Chilliet2022-12-193-41/+12
|\ | | | | Compute notification parsed subject from rich subject when possible
| * Get rid of all useless calls to setParsedSubject now that setRichSubject is ↵Côme Chilliet2022-11-293-41/+12
| | | | | | | | | | | | able to do it Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Use TimedJob from OCP instead of OCCôme Chilliet2022-12-053-11/+18
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Cast to int #32837Markus Zeller2022-11-071-1/+1
| | | | Signed-off-by: Markus Zeller <git@markuszeller.com>
* Also throttle on expirationJoas Schilling2022-10-121-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix psalm error on migrationJoas Schilling2022-10-121-6/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a background job to delete expired tokensJoas Schilling2022-10-122-0/+70
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also remove token when we successfully validatedJoas Schilling2022-10-111-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Require a token for "Edit locally"Joas Schilling2022-10-114-0/+326
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow scanning for metadata with occ scan:file --generate-metadataCarl Schwan2022-10-111-16/+33
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* Url encode the web dav url for copyingAnna Larch2022-10-021-1/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>