summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #32874 from bill-mcgonigle/patch-1Simon L2022-06-171-1/+1
|\ | | | | Mention missing files subdir
| * Mention missing files subdirBill McGonigle2022-06-141-1/+1
| | | | | | | | | | Many users are getting confused by the inaccurate error message "Home storage for user $user not writable" because the storage *is* writable. The actual issue is a missing files/ subdirectory. cf. https://help.nextcloud.com/t/home-storage-for-user-not-writable/10831/7 By mentioning the possible cause in the error message, users are going to be able to rapidly solve their problem rather than bang their heads against the screen, Google, and eventually forums to find out that the error message is wrong in their case. Yes, it would be better to detect and precisely describe the fault, or fix the problem automatically, but until then, be kind to the users for the next however many years.
* | Use {$var} instead of ${var} for PHP 8.2 compatibilityCôme Chilliet2022-06-141-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #32059 from cld4h/patch-1Vincent Petry2022-06-101-1/+1
|\ | | | | Fix issue #31692 of occ files:scan
| * Fix issue #31692 of occ files:scancld4h2022-04-261-1/+1
| | | | | | | | | | | | occ files:scan reports error "Implicit conversion from float XXX to int loses precision" Signed-off-by: cld4h <20869428+cld4h@users.noreply.github.com>
* | Only load direct editing capabilities when requiredJulius Härtl2022-06-033-28/+56
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #32149 from nextcloud/fix-transferring-groupfoldersJohn Molakvoæ2022-05-111-1/+2
|\ \
| * | fix for transferring ownership of groupfoldersVanessa Pertsch2022-05-101-1/+2
| |/ | | | | | | Signed-off-by: Vanessa Pertsch <vanessa.pertsch@nextcloud.com>
* / Add a public replacement for OC::$server->getCarl Schwan2022-05-102-18/+25
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* don't force a full setup for getting storage statsRobin Appelman2022-04-061-1/+0
| | | | | | the auto-setup is good enough Signed-off-by: Robin Appelman <robin@icewind.nl>
* Adapt more code to migration to LoggerInterfaceCôme Chilliet2022-03-243-13/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Don't redirect when loading files index pageCarl Schwan2022-02-171-1/+1
| | | | | | | | | | | | | | | | Currently we are redirecting from ?dir=/&fileid=2 to ?dir=/. This is an issue because we then need to load two pages with full file system setup and authentification instead of one and the assets won't start loading until the second page is delivered to the user. Additionally when loading ?dir=/, we then change the url back to ?dir=/&fileid=2 (without reload) so that the next time we load the page again we do the same thing again. Depending on the speed of the server and internet connection we can save 100ms to 400ms, improving the user experience. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #30953 from ↵Vincent Petry2022-02-101-7/+6
|\ | | | | | | | | nextcloud/feat/init-storage-when-transferring-ownership Init user's file system if not existing on ownership transfer
| * Init user's file system if not existing on ownership transferCarl Schwan2022-02-011-7/+6
| | | | | | | | | | | | | | | | This makes it a bit easier to transfer ownership when the new user hasn't already logged in. This still doesn't support encrypted storages because the keys are not generated yet. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Merge pull request #31097 from ↵Vincent Petry2022-02-101-1/+5
|\ \ | | | | | | | | | | | | nextcloud/bugfix/31096/fix-shares-transfer-guest-to-nonguest Fix path handling when transferring incoming shares
| * | Fix path handling when transferring incoming sharesVincent Petry2022-02-101-1/+5
| |/ | | | | | | | | | | | | | | | | When transferring incoming shares from a guest user without specifying a path, the $path is empty. The fix properly handles that situation to avoid looking for shares in a path with doubled slashes which failed to find shares to transfer. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* / Don't provide favorite activity settingsJoas Schilling2022-02-091-2/+10
|/ | | | | | | | | Since mails and notifications are only available for actions of other users it does not make sense to allow changing this. It also prevents the common misunderstanding with "file was changed inside a favorited folder" Signed-off-by: Joas Schilling <coding@schilljs.com>
* [files] new internal link GET param to avoid setting 'openfile' on redirectJulien Veyssier2022-01-141-2/+2
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Merge pull request #30530 from nextcloud/fix/search-urlJohn Molakvoæ2022-01-141-6/+5
|\
| * Fix wrong unified search link to folderJohn Molakvoæ2022-01-131-6/+5
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | Split common vendor chunkJohn Molakvoæ (skjnldsv)2022-01-081-4/+2
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Move bundles to /distJohn Molakvoæ (skjnldsv)2022-01-082-2/+4
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Limit more contact searchesJoas Schilling2021-12-081-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix testsRobin Appelman2021-12-021-4/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* stop background scan early if a users still has unscanned files after ↵Robin Appelman2021-12-021-1/+7
| | | | | | background scan Signed-off-by: Robin Appelman <robin@icewind.nl>
* find users for background scan one by oneRobin Appelman2021-12-021-22/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove isIE and associated legacy scriptsJohn Molakvoæ (skjnldsv)2021-11-301-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move storage encoding compatibility warning logicVincent Petry2021-11-172-30/+4
| | | | | | | | | | | The encoding check for file names is now happening the Scanner, and an event will be emitted only if the storage doesn't contain the encoding compatibility wrapper. The event is listened to by the occ scan command to be able to display a warning in case of file name mismatches when they have NFD encoding. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Move to combined files entrypointJulius Härtl2021-10-251-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not transfer shares for deleted usersVincent Petry2021-10-041-7/+20
| | | | | | | | | | Whenever a user was deleted but is still recipient of share entries, delete these entries upon transfer. Usually such entries would disappear after running cleanup background jobs. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #28853 from ↵Vincent Petry2021-09-271-2/+6
|\ | | | | | | | | nextcloud/bugfix/27547/dont-allow-changing-settings-that-dont-work Don't allow to change activity settings that don't work
| * Don't allow to change activity settings that don't workJoas Schilling2021-09-151-2/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Added support for transfering incoming file shares.Immanuel Pasanec2021-08-272-4/+180
|/ | | | | | | | | - new option --transfer-incoming-shares=1 | 0 - new config.php option 'transfer-incoming-shares' => true | false The command line option overrules the config.php option. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Log exception message during failed ownership transfer share restoreChristoph Wurst2021-08-241-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix typoLouis2021-07-281-1/+1
| | | Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
* Set openfile params when following internal linksLouis Chemineau2021-07-271-3/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix variabable override in file viewLouis Chemineau2021-07-261-5/+5
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Trigger click event when scrollTo is setLouis Chemineau2021-06-092-1/+55
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Merge pull request #26494 from rigrig/fix-php8-deprecationsMorris Jobke2021-06-071-1/+1
|\ | | | | Fix some php 8 warnings
| * Fix functions taking optional parameters before required onesRichard de Boer2021-05-291-1/+1
| | | | | | | | | | | | | | PHP 8 shows deprecation warnings about this, see #25806 Removes the "default" values, as they actually are required parameters anyway. Signed-off-by: Richard de Boer <git@tubul.net>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0446-91/+55
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix more psalm warningsRoeland Jago Douma2021-05-211-8/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add proper PHPDoc tags to files ApiControllerMorris Jobke2021-05-211-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #26727 from nextcloud/group-exclude-link-shareMorris Jobke2021-05-211-2/+7
|\ | | | | Add option to exclude groups from creating link shares
| * load share settings from the share manager in more placesRobin Appelman2021-05-121-2/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | optimize getting share types for recent filesRobin Appelman2021-04-211-33/+49
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move over notification to new registrationRoeland Jago Douma2021-04-161-6/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #26198 from nextcloud/unified-search-nodeMorris Jobke2021-03-221-31/+46
|\ | | | | Handle limit offset and sorting in files search
| * pass order from unified search to file searchRobin Appelman2021-03-191-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * use "newer" node search api directly in unified searchRobin Appelman2021-03-181-31/+42
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>