aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix: user_id made required argument and documentation updated accordinglyfeature/files-list-occ-commandyemkareems2024-07-301-9/+5
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: psalm ci fixyemkareems2024-07-301-3/+2
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: psalm ci fixyemkareems2024-07-301-2/+2
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: make user mandatory argument and use getUserFolder to get users ↵yemkareems2024-07-301-10/+11
| | | | | | directory. Add path to get the list based on the path or else list the user folder. Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: issues with sorting fixedyemkareems2024-07-301-0/+6
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: cs fix ran for ListFilesyemkareems2024-07-301-1/+0
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: humanFileSize added for size, type strict check removed as it is ↵yemkareems2024-07-301-42/+30
| | | | | | breaking the listing, inputPath check removed as path is mandatory, sorting done only when sort param is there, writeTableInOutputFormat done Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: cs fix ranyemkareems2024-07-301-0/+1
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: addOption type correctedyemkareems2024-07-301-2/+2
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: getNodeInfo type corrected, type check made strict, min/max type ↵yemkareems2024-07-301-10/+12
| | | | | | converted, user check removed Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: FileCopyrightText changedyemkareems2024-07-301-19/+4
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* feat: add occ command files:listyemkareems2024-07-301-0/+312
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* 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>
* | fix: Also expose forbidden filename character in the capabilitiesFerdinand Thiessen2024-02-281-2/+3
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | feat(search): allows to search files by pathBenjamin Gaussorgues2024-02-271-0/+3
|/ | | | | | | Use `GET search/providers/files/search?path=<path>` with beginning of the path Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #39215 from shdehnavi/replace_substr_calls_in_files_appJohn Molakvoæ2024-02-231-2/+2
|\
| * Merge branch 'master' into replace_substr_calls_in_files_appHamid Dehnavi2023-10-302-1/+28
| |\ | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
| * | Refactor "substr" calls to improve code readabilityHamid Dehnavi2023-09-271-2/+2
| | | | | | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | | fix: replace `Account name` by `Login`John Molakvoæ2024-02-131-2/+2
| | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | | feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | | | | | | | | | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | fix(files): Remove dead code from files controllersFerdinand Thiessen2024-02-121-20/+0
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>