Commit Graph

496 Commits (17c2deff76e100b021ebbf5124584b6ba29cf05d)

Author SHA1 Message Date
Simon L de82d4f67c
Merge pull request #32874 from bill-mcgonigle/patch-1
Mention missing files subdir
2022-06-17 12:12:25 +07:00
Côme Chilliet c54fb5f9e6
Use {$var} instead of ${var} for PHP 8.2 compatibility
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-06-14 15:12:28 +07:00
Bill McGonigle ad60b3b479
Mention missing files subdir
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.
2022-06-14 07:10:29 +07:00
Vincent Petry e6e1862000
Merge pull request #32059 from cld4h/patch-1
Fix issue #31692 of occ files:scan
2022-06-10 16:20:00 +07:00
Julius Härtl 61056587c9
Only load direct editing capabilities when required
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-03 07:15:17 +07:00
John Molakvoæ 18f2340a40
Merge pull request #32149 from nextcloud/fix-transferring-groupfolders 2022-05-11 08:40:28 +07:00
Carl Schwan f945c0cbc6 Add a public replacement for OC::$server->get
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-10 18:51:12 +07:00
Vanessa Pertsch c714c3380a fix for transferring ownership of groupfolders
Signed-off-by: Vanessa Pertsch <vanessa.pertsch@nextcloud.com>
2022-05-10 16:54:22 +07:00
cld4h 553239c083 Fix issue #31692 of occ files:scan
occ files:scan reports error "Implicit conversion from float XXX to int loses precision"

Signed-off-by: cld4h <20869428+cld4h@users.noreply.github.com>
2022-04-26 14:22:41 +07:00
Robin Appelman 7eca0a2553
don't force a full setup for getting storage stats
the auto-setup is good enough

Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 13:13:37 +07:00
Côme Chilliet ea23523c70
Adapt more code to migration to LoggerInterface
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-24 16:21:25 +07:00
Carl Schwan 028ca0935c Don't redirect when loading files index page
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>
2022-02-17 17:06:33 +07:00
Vincent Petry 62d47100ec
Merge pull request #30953 from nextcloud/feat/init-storage-when-transferring-ownership
Init user's file system if not existing on ownership transfer
2022-02-10 18:13:43 +07:00
Vincent Petry 1a9e6f1571
Merge pull request #31097 from nextcloud/bugfix/31096/fix-shares-transfer-guest-to-nonguest
Fix path handling when transferring incoming shares
2022-02-10 17:47:41 +07:00
Vincent Petry 7858fee5b5
Fix path handling when transferring incoming shares
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>
2022-02-10 09:50:21 +07:00
Joas Schilling 5f5142ff58
Don't provide favorite activity settings
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>
2022-02-09 10:49:32 +07:00
Carl Schwan 02da4ce1b0 Init user's file system if not existing on ownership transfer
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>
2022-02-01 13:26:41 +07:00
Julien Veyssier b67b4b160b
[files] new internal link GET param to avoid setting 'openfile' on redirect
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-14 10:50:13 +07:00
John Molakvoæ 2c1eac665a
Merge pull request #30530 from nextcloud/fix/search-url 2022-01-14 09:18:44 +07:00
John Molakvoæ 8d3a4856cb
Fix wrong unified search link to folder
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-01-13 18:26:07 +07:00
John Molakvoæ (skjnldsv) 87d0904b6f
Split common vendor chunk
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-01-08 10:14:50 +07:00
John Molakvoæ (skjnldsv) b664aad7ab
Move bundles to /dist
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-01-08 10:11:58 +07:00
Joas Schilling d49ad7ea47
Limit more contact searches
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-08 18:58:54 +07:00
Robin Appelman e95745c074
fix tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-02 17:43:16 +07:00
Robin Appelman 89bc9f1b77
stop background scan early if a users still has unscanned files after background scan
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-02 17:35:07 +07:00
Robin Appelman 38921ab498
find users for background scan one by one
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-02 17:35:02 +07:00
John Molakvoæ (skjnldsv) a325141545
Remove isIE and associated legacy scripts
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-11-30 13:03:08 +07:00
Vincent Petry 67ebe75d0e
Move storage encoding compatibility warning logic
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>
2021-11-17 09:24:13 +07:00
Julius Härtl 9c937a63bf
Move to combined files entrypoint
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-25 16:51:37 +07:00
Vincent Petry fa23a9f720
Do not transfer shares for deleted users
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>
2021-10-04 11:04:04 +07:00
Vincent Petry ab09f1e00e
Merge pull request #28853 from nextcloud/bugfix/27547/dont-allow-changing-settings-that-dont-work
Don't allow to change activity settings that don't work
2021-09-27 08:16:33 +07:00
Joas Schilling ad9cad1ae5
Don't allow to change activity settings that don't work
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-09-15 17:27:01 +07:00
Immanuel Pasanec 1f42657bb9
Added support for transfering incoming file shares.
- 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>
2021-08-27 17:55:58 +07:00
Christoph Wurst ffcf27c757
Log exception message during failed ownership transfer share restore
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-08-24 09:22:30 +07:00
Louis 1ad5e8ad73
Fix typo
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
2021-07-28 11:15:03 +07:00
Louis Chemineau e558a00496 Set openfile params when following internal links
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-07-27 11:41:32 +07:00
Louis Chemineau 2cbc3e9245 Fix variabable override in file view
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-07-26 15:47:37 +07:00
Louis Chemineau c03a14934b Trigger click event when scrollTo is set
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-06-09 16:19:11 +07:00
Morris Jobke 2ae60b42ab
Merge pull request #26494 from rigrig/fix-php8-deprecations
Fix some php 8 warnings
2021-06-07 23:30:59 +07:00
John Molakvoæ (skjnldsv) 215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Richard de Boer f23d057ad9 Fix functions taking optional parameters before required ones
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>
2021-05-29 14:14:52 +07:00
Roeland Jago Douma bcf01a1b90
Fix more psalm warnings
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-21 16:58:15 +07:00
Morris Jobke eb1d16d92d
Add proper PHPDoc tags to files ApiController
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-21 16:58:15 +07:00
Morris Jobke f1dbabd910
Merge pull request #26727 from nextcloud/group-exclude-link-share
Add option to exclude groups from creating link shares
2021-05-21 15:35:39 +07:00
Robin Appelman b1dca57a1c
load share settings from the share manager in more places
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-12 16:11:28 +07:00
Robin Appelman 907e997c99
optimize getting share types for recent files
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-21 13:56:11 +07:00
Roeland Jago Douma 0593b039fc Move over notification to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-16 13:56:28 +07:00
Morris Jobke 1c074e7602
Merge pull request #26198 from nextcloud/unified-search-node
Handle limit offset and sorting in files search
2021-03-22 21:48:51 +07:00
Robin Appelman a0fb6d2518
pass order from unified search to file search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19 16:07:57 +07:00
Christoph Wurst e68c4a4ed3
Only perform login check during ownership transfer for encryption
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-19 11:25:56 +07:00