]>
source.dussan.org Git - nextcloud-server.git/log
Côme Chilliet [Tue, 11 Jan 2022 15:36:27 +0000 (16:36 +0100)]
Move duplicated code to a base class for group_mapping migrations
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Côme Chilliet [Tue, 11 Jan 2022 15:16:02 +0000 (16:16 +0100)]
Split dropTable and createTable in two migrations
It is not possible to drop and create the same table in one migration
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Côme Chilliet [Mon, 10 Jan 2022 11:07:41 +0000 (12:07 +0100)]
Fix primary key change in user_ldap migration
Use a backup table to copy the data, drop table and recreate it with
correct primary key, then copy the data back and drop the backup table.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Carl Schwan [Thu, 13 Jan 2022 12:52:29 +0000 (13:52 +0100)]
Merge pull request #30531 from nextcloud/performance/optimize-filesystemtags-flow-groupfolder
Optimize FileSystemTags workflow for groupfolder
Carl Schwan [Thu, 13 Jan 2022 11:30:27 +0000 (12:30 +0100)]
Fix psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Carl Schwan [Mon, 10 Jan 2022 10:36:51 +0000 (11:36 +0100)]
Add helper method in Wrapper
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Carl Schwan [Fri, 7 Jan 2022 16:55:02 +0000 (17:55 +0100)]
The storage is not static anymore
Don't call twice $cache->getId
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Carl Schwan [Fri, 7 Jan 2022 13:00:48 +0000 (14:00 +0100)]
Optimize FileSystemTags workflow for groupfolder
In https://github.com/nextcloud/server/pull/28774 we disabled the
caching for the groupfolder application since it worked due to the fact
that in groupfolders, getFileIds could be called with the same $cacheId
and path for actually different groupfolders.
This revert this change and instead add the folderId from the
groupFolder to the cacheId. This solve the issue of the uniqueness of
the cacheId inside GroupFolder. Downside is that we introduce
groupfolder specific implementation inside the server repo.
The seconf optimization is to not consider paths starting with
__groupfolders in executeCheck. This is due to the fact that files in
the groupfolder application call two times executeCheck one time with
the url __groupfolder/<folderId>/<path> and the other time with <path>.
The first time will always return an empty systemTags array while the
second call will return the correct system tags.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Carl Schwan [Thu, 13 Jan 2022 08:51:04 +0000 (09:51 +0100)]
Merge pull request #30508 from nextcloud/fix/psaml-bin
Fix psalm not running
Vincent Petry [Thu, 13 Jan 2022 08:26:46 +0000 (09:26 +0100)]
Merge pull request #30620 from nextcloud/bugfix/14897/fix-cancelling
Properly abort uploads
Carl Schwan [Thu, 13 Jan 2022 08:24:26 +0000 (09:24 +0100)]
Merge pull request #30600 from nextcloud/fix/30595/idn-email-share
Fix idn emails not working in shares
Nextcloud bot [Thu, 13 Jan 2022 02:26:35 +0000 (02:26 +0000)]
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Carl Schwan [Wed, 12 Jan 2022 19:44:38 +0000 (20:44 +0100)]
Check style update
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Carl Schwan [Wed, 12 Jan 2022 13:15:08 +0000 (14:15 +0100)]
Fix types warnings from psalm
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Vincent Petry [Wed, 12 Jan 2022 15:39:45 +0000 (16:39 +0100)]
Properly hide progress bar after error
Whenever an error occurs, also hide the progress bar.
The logic was also adjusted to properly detect uploads that are pending
deletion, in which case the progress bar can already be hidden.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Vincent Petry [Wed, 12 Jan 2022 10:42:10 +0000 (11:42 +0100)]
Properly abort uploads
Add a new approach for flagging an upload as aborted because we can't
rely on the browser fully cancelling the request as we now seem to
receive an error response from the server instead of a jQuery "abort"
message.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Carl Schwan [Thu, 6 Jan 2022 15:57:32 +0000 (16:57 +0100)]
Fix a few psalm issues and moved back to psalm/phar 4.18
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Louis [Wed, 12 Jan 2022 14:56:23 +0000 (15:56 +0100)]
Merge pull request #30605 from nextcloud/fix/remove_legacy_build_files
Clear dist folder during build
Louis [Wed, 12 Jan 2022 14:55:56 +0000 (15:55 +0100)]
Merge pull request #30606 from nextcloud/deps/drop_eslint-webpack-loader
Drop eslint-loader
Louis [Wed, 12 Jan 2022 14:48:36 +0000 (15:48 +0100)]
Merge pull request #30572 from nextcloud/fix/lint_warnings
Fix lint warnings
Vincent Petry [Wed, 12 Jan 2022 13:41:50 +0000 (14:41 +0100)]
Merge pull request #30593 from nextcloud/bugfix/19048/fix-changedirectory-recommendations
Trigger "changeDirectory" event on URL change
Joas Schilling [Wed, 12 Jan 2022 13:23:31 +0000 (14:23 +0100)]
Merge pull request #30625 from nextcloud/enh/jsconfig-theme-perf
Remove shortFooter/longFooter to avoid unnecessary navigation loading
Julius Härtl [Wed, 12 Jan 2022 11:16:39 +0000 (12:16 +0100)]
Remove shortFooter/longFooter to avoid unnecessary navigation loading
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Louis [Wed, 12 Jan 2022 10:57:23 +0000 (11:57 +0100)]
Merge pull request #30485 from nextcloud/fix/correctly_set_the_mtime_in_bulk_upload
Set the file's mtime from the headers in bulk upload
Louis Chemineau [Wed, 12 Jan 2022 10:34:58 +0000 (11:34 +0100)]
Drop eslint-loader
Signed-off-by: Louis Chemineau <louis@chmn.me>
Vincent Petry [Wed, 12 Jan 2022 08:07:05 +0000 (09:07 +0100)]
Merge pull request #30609 from nextcloud/fix/noid/request-url-cli-check
Fix RequestURL check for cli commands
Nextcloud bot [Wed, 12 Jan 2022 02:26:58 +0000 (02:26 +0000)]
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Carl Schwan [Tue, 11 Jan 2022 14:59:57 +0000 (15:59 +0100)]
Add check before sending email that email address is valid
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Carl Schwan [Tue, 11 Jan 2022 18:14:28 +0000 (19:14 +0100)]
Fix RequestURL check for cli commands
Fix https://github.com/nextcloud/files_automatedtagging/issues/526
Fix https://github.com/nextcloud/groupfolders/issues/1855
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Pytal [Tue, 11 Jan 2022 18:12:11 +0000 (10:12 -0800)]
Merge pull request #30588 from nextcloud/bugfix/noid/fix-unset-scopes
Vincent Petry [Tue, 11 Jan 2022 11:17:23 +0000 (12:17 +0100)]
Trigger "changeDirectory" even on URL change
When using the browser back button or clicking on sections on the left
sidebar (like favorites), the "changeDirectory" jQuery event did not get
called, so apps like recommendations would not notice the directory
change.
This fixes the issue by also setting changeUrl to true when the file
list's directory got changed as a result from a URL change.
Added optional changedThroughUrl argument to make sure the event
recipient knows if the change was done through a URL change and make it
possible prevent a loop in the onDirectoryChange handler that actually
changes the URL when the origin was already from a URL change.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Louis Chemineau [Tue, 11 Jan 2022 16:26:29 +0000 (17:26 +0100)]
Compile frontend to update license files
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Tue, 11 Jan 2022 16:18:11 +0000 (17:18 +0100)]
Replace license information to SPDX expression
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Tue, 11 Jan 2022 16:16:05 +0000 (17:16 +0100)]
Remove legacy build files
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Mon, 10 Jan 2022 13:55:59 +0000 (14:55 +0100)]
Import type from packages
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Mon, 10 Jan 2022 13:16:47 +0000 (14:16 +0100)]
Add generic type and description when its missing
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Mon, 10 Jan 2022 13:06:28 +0000 (14:06 +0100)]
Typing corrections
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Tue, 11 Jan 2022 09:56:49 +0000 (10:56 +0100)]
Set the file's mtime from the headers in bulk upload
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Tue, 11 Jan 2022 15:52:38 +0000 (16:52 +0100)]
Clear dist folder during build
Signed-off-by: Louis Chemineau <louis@chmn.me>
Carl Schwan [Tue, 11 Jan 2022 14:44:25 +0000 (15:44 +0100)]
Fix idn emails not working in shares
Fix #30595
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
MichaIng [Tue, 11 Jan 2022 12:39:02 +0000 (13:39 +0100)]
Merge pull request #30533 from nextcloud/fix/avoid-zero-division
Avoid zero division in setup checks
Joas Schilling [Tue, 11 Jan 2022 12:35:56 +0000 (13:35 +0100)]
Merge pull request #30291 from nextcloud/image-memory-limit
Prevent loading images that would require too much memory.
blizzz [Tue, 11 Jan 2022 11:59:07 +0000 (12:59 +0100)]
Merge pull request #30569 from nextcloud/fix/userlang_firstlogin
Default to language from request in L10N\Factory->getUserLanguage()
Joas Schilling [Tue, 11 Jan 2022 11:54:41 +0000 (12:54 +0100)]
Fix test
Signed-off-by: Joas Schilling <coding@schilljs.com>
Joas Schilling [Tue, 11 Jan 2022 10:56:56 +0000 (11:56 +0100)]
Merge pull request #30570 from nextcloud/rakekniven-branch3
Removed obselete language files - Pt. II
Joachim Bauch [Thu, 16 Dec 2021 08:17:11 +0000 (09:17 +0100)]
Prevent loading images that would require too much memory.
For most image formats, the header specifies the width/height.
PHP allocates an image object from that size, even if the actual
image data is much smaller. This image object size is not limited
by the limit configured in PHP.
The memory limit can be configured through "config.php" setting
"preview_max_memory" and defaults to 128 MBytes which should be
enough for most images without filling up all memory.
Signed-off-by: Joachim Bauch <bauch@struktur.de>
MichaIng [Fri, 7 Jan 2022 18:43:07 +0000 (19:43 +0100)]
Avoid zero division in setup checks
Fixes: https://github.com/nextcloud/server/issues/30532
Signed-off-by: MichaIng <micha@dietpi.com>
Louis [Tue, 11 Jan 2022 10:22:48 +0000 (11:22 +0100)]
Merge pull request #30582 from nextcloud/fix/streamline_clearing_static_state
Streamline reseting of private static properties
Louis Chemineau [Mon, 10 Jan 2022 16:34:48 +0000 (17:34 +0100)]
Streamline reseting of private static properties
Signed-off-by: Louis Chemineau <louis@chmn.me>
Joas Schilling [Tue, 11 Jan 2022 09:15:06 +0000 (10:15 +0100)]
Fix undefined/unset scope in account properties
Signed-off-by: Joas Schilling <coding@schilljs.com>
Nextcloud bot [Tue, 11 Jan 2022 02:27:07 +0000 (02:27 +0000)]
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
John Molakvoæ [Mon, 10 Jan 2022 19:03:21 +0000 (20:03 +0100)]
Merge pull request #30571 from nextcloud/fix/missing-jquery
Louis Chemineau [Mon, 10 Jan 2022 17:42:07 +0000 (18:42 +0100)]
Revert "Streamline reseting of private static properties"
This reverts commit
e50121d4c05afb8eca22bc105b160283ff4181c0 .
Louis Chemineau [Mon, 10 Jan 2022 16:34:48 +0000 (17:34 +0100)]
Streamline reseting of private static properties
Signed-off-by: Louis Chemineau <louis@chmn.me>
Vincent Petry [Mon, 10 Jan 2022 15:42:23 +0000 (16:42 +0100)]
Merge pull request #30499 from nextcloud/bugfix/29941/remove-shareinfo-query-from-scanner
Remove inefficient fed share scanner
Vincent Petry [Mon, 10 Jan 2022 15:42:02 +0000 (16:42 +0100)]
Merge pull request #30565 from nextcloud/bugfix/30564/fix-mkdir-fail-when-keys-folder-exists
Fix fail when keys/files folder already exists
Vincent Petry [Mon, 10 Jan 2022 15:41:11 +0000 (16:41 +0100)]
Merge pull request #30567 from nextcloud/bugfix/noid/npm-ci-for-karma
Use npm ci when running JS tests
Vincent Petry [Mon, 10 Jan 2022 14:08:03 +0000 (15:08 +0100)]
Fix JS tests after test lib updates
Prevent XHR during load by checking window.TESTING.
Adjust some expected values.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Azul [Mon, 10 Jan 2022 13:54:29 +0000 (14:54 +0100)]
fix: only use jquery once it is available
publicpage.js is loaded very early and cannot rely on jquery being loaded already.
Move the use of `$` into the `DomContentLoaded` handler.
Signed-off-by: Azul <azul@riseup.net>
Vincent Petry [Mon, 10 Jan 2022 13:17:09 +0000 (14:17 +0100)]
Update node deps for JS tests
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
rakekniven [Mon, 10 Jan 2022 13:07:14 +0000 (14:07 +0100)]
Removed obselete language files - Pt. II
For these files there are no associated languages setup at Transifex.
Fix for #30501
Related to nextcloud/docker-ci#341
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
Jonas Meurer [Mon, 10 Jan 2022 11:01:12 +0000 (12:01 +0100)]
Default to language from request in L10N\Factory->getUserLanguage()
Try to get the language from request before falling back to the instance
default.
This fixes the detected user language during first login of a new user
and ensures that the returned language is consistent during the login.
Also partially fixes a bug with Collectives folder being initialized
in different languages at first login, see
https://gitlab.com/collectivecloud/collectives/-/issues/238
Signed-off-by: Jonas Meurer <jonas@freesources.org>
Vincent Petry [Mon, 10 Jan 2022 11:00:16 +0000 (12:00 +0100)]
Use npm ci when running JS tests
This makes sure that the pinned versions are selected correctly.
Fixes the colors.js incident.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
John Molakvoæ [Mon, 10 Jan 2022 10:43:24 +0000 (11:43 +0100)]
Merge pull request #30561 from nextcloud/rakekniven-branch2
Vincent Petry [Wed, 5 Jan 2022 16:19:24 +0000 (17:19 +0100)]
Remove inefficient fed share scanner
Remove scanAll which relies on the "shareinfo" endpoint that returns the
full cache tree.
The latter can become big for big shares and result in timeouts.
Furthermode, the full tree would be retrieved again for each and every
detected change which can become expensive quickly.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Vincent Petry [Mon, 10 Jan 2022 10:15:22 +0000 (11:15 +0100)]
Fix fail when keys/files folder already exists
Fixes an issue with transfer ownership in move mode where the folder
"files_encryption/keys/files" already exists.
Instead of failing, its existence is checked before calling mkdir.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Carl Schwan [Mon, 10 Jan 2022 08:41:18 +0000 (09:41 +0100)]
Merge pull request #30020 from nextcloud/feat/webpack-vendors-bundles
Feat/webpack vendors bundles
Nextcloud bot [Mon, 10 Jan 2022 02:26:33 +0000 (02:26 +0000)]
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
rakekniven [Sun, 9 Jan 2022 21:01:52 +0000 (22:01 +0100)]
Removed obselete language files
Those files are remnants of old languages after renaming, mapping or deleting.
Fix for #30501
Related to https://github.com/nextcloud/docker-ci/issues/341
Carl Schwan [Sun, 9 Jan 2022 17:37:29 +0000 (18:37 +0100)]
Merge pull request #30468 from nextcloud/fix/handle-server-unavailable-scanner
Handle LocalServerException when scanning external shares
Nextcloud bot [Sun, 9 Jan 2022 02:26:25 +0000 (02:26 +0000)]
[tx-robot] updated from transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
John Molakvoæ [Sat, 8 Jan 2022 09:48:36 +0000 (10:48 +0100)]
Use sync modifier with openMenu
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Louis Chemineau [Fri, 7 Jan 2022 10:09:46 +0000 (11:09 +0100)]
Bump p-queue
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Fri, 7 Jan 2022 09:10:52 +0000 (10:10 +0100)]
Deprecate script function
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Fri, 7 Jan 2022 09:04:42 +0000 (10:04 +0100)]
Reset $scriptDeps in tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Thu, 6 Jan 2022 16:59:07 +0000 (17:59 +0100)]
Detect app's script higher up as some scripts were shadowed
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Thu, 6 Jan 2022 13:58:20 +0000 (14:58 +0100)]
Revert build/package-lock.json change
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Thu, 6 Jan 2022 13:43:26 +0000 (14:43 +0100)]
Restore line in autotest-js
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Thu, 6 Jan 2022 13:15:24 +0000 (14:15 +0100)]
Fix undescore version
Reason: https://github.com/nextcloud/server/pull/27279
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Wed, 5 Jan 2022 18:42:20 +0000 (19:42 +0100)]
Don't import $ in every file that needs it
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Tue, 4 Jan 2022 12:59:33 +0000 (13:59 +0100)]
Fix webpack version
Reason: https://github.com/webpack/webpack/pull/14628
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Fri, 3 Dec 2021 16:25:57 +0000 (17:25 +0100)]
Compile bundle
Signed-off-by: Louis Chemineau <louis@chmn.me>
John Molakvoæ (skjnldsv) [Fri, 3 Dec 2021 14:43:16 +0000 (15:43 +0100)]
Fix node test
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
John Molakvoæ (skjnldsv) [Fri, 3 Dec 2021 14:12:18 +0000 (15:12 +0100)]
Fix dynamic loading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
John Molakvoæ (skjnldsv) [Fri, 3 Dec 2021 13:10:59 +0000 (14:10 +0100)]
Move backgroundjob script after main core scripts
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Louis Chemineau [Fri, 3 Dec 2021 13:03:58 +0000 (14:03 +0100)]
Adapt test to new dist file layout
Signed-off-by: Louis Chemineau <louis@chmn.me>
John Molakvoæ (skjnldsv) [Thu, 2 Dec 2021 21:39:00 +0000 (22:39 +0100)]
Ensure mapfile consistency
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
John Molakvoæ (skjnldsv) [Thu, 2 Dec 2021 17:57:11 +0000 (18:57 +0100)]
Split common vendor chunk
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
John Molakvoæ (skjnldsv) [Thu, 2 Dec 2021 17:32:57 +0000 (18:32 +0100)]
Eslint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
John Molakvoæ (skjnldsv) [Thu, 2 Dec 2021 17:32:28 +0000 (18:32 +0100)]
Delete outdated bundles
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Louis Chemineau [Thu, 2 Dec 2021 14:46:39 +0000 (15:46 +0100)]
Copy core/webpack config into common config
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Thu, 2 Dec 2021 13:50:49 +0000 (14:50 +0100)]
Migrate to webpack v5
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Wed, 1 Dec 2021 23:24:40 +0000 (00:24 +0100)]
Restore some line in JSResourceLocator.php
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Wed, 1 Dec 2021 21:46:01 +0000 (22:46 +0100)]
Use new div method in scss
Signed-off-by: Louis Chemineau <louis@chmn.me>
John Molakvoæ (skjnldsv) [Wed, 1 Dec 2021 23:08:08 +0000 (00:08 +0100)]
Move bundles to /dist
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Louis Chemineau [Wed, 1 Dec 2021 21:29:37 +0000 (22:29 +0100)]
Use rootModule when module is concatenated
Signed-off-by: Louis Chemineau <louis@chmn.me>
Louis Chemineau [Wed, 1 Dec 2021 20:49:03 +0000 (21:49 +0100)]
Remove iedavclient from entry list
Signed-off-by: Louis Chemineau <louis@chmn.me>
John Molakvoæ (skjnldsv) [Fri, 6 Aug 2021 15:46:45 +0000 (17:46 +0200)]
Remove old configs
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
John Molakvoæ (skjnldsv) [Fri, 6 Aug 2021 15:39:01 +0000 (17:39 +0200)]
Merge all configs into one
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
dependabot[bot] [Sat, 8 Jan 2022 07:24:14 +0000 (07:24 +0000)]
Merge pull request #30543 from nextcloud/dependabot/npm_and_yarn/nextcloud/stylelint-config-2.1.1