]> source.dussan.org Git - nextcloud-server.git/log
nextcloud-server.git
2 years agoAllow to log DB, redis and LDAP requests into files 30036/head
Joas Schilling [Wed, 1 Dec 2021 15:30:45 +0000 (16:30 +0100)]
Allow to log DB, redis and LDAP requests into files

Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years agoMerge pull request #30021 from nextcloud/backport/30018/stable23
MichaIng [Thu, 2 Dec 2021 01:40:45 +0000 (02:40 +0100)]
Merge pull request #30021 from nextcloud/backport/30018/stable23

[stable23] Fix collaborative tags styles

2 years agoMerge pull request #30014 from nextcloud/backport/29995/stable23
Pytal [Wed, 1 Dec 2021 23:48:03 +0000 (15:48 -0800)]
Merge pull request #30014 from nextcloud/backport/29995/stable23

2 years agoFix profile actions menu 30014/head
Christopher Ng [Wed, 1 Dec 2021 18:22:16 +0000 (18:22 +0000)]
Fix profile actions menu

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years agoFix collaborative tags styles 30021/head
Christopher Ng [Wed, 1 Dec 2021 18:04:16 +0000 (18:04 +0000)]
Fix collaborative tags styles

Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years agoMerge pull request #29975 from nextcloud/backport/29872/stable23
Pytal [Wed, 1 Dec 2021 18:17:20 +0000 (10:17 -0800)]
Merge pull request #29975 from nextcloud/backport/29872/stable23

2 years agoMerge pull request #30008 from nextcloud/backport/30001/stable23
Christoph Wurst [Wed, 1 Dec 2021 18:07:18 +0000 (19:07 +0100)]
Merge pull request #30008 from nextcloud/backport/30001/stable23

[stable23] Cast orphan subscription id to int

2 years agoCast orphan subscription id to int 30008/head
Christoph Wurst [Wed, 1 Dec 2021 09:48:14 +0000 (10:48 +0100)]
Cast orphan subscription id to int

DB columns are of type int by default, so they need to be casted.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2 years agoSet profile page title 29975/head
Christopher Ng [Mon, 29 Nov 2021 20:33:03 +0000 (20:33 +0000)]
Set profile page title

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years agoMerge pull request #29967 from nextcloud/backport/29917/stable23
blizzz [Tue, 30 Nov 2021 13:55:23 +0000 (14:55 +0100)]
Merge pull request #29967 from nextcloud/backport/29917/stable23

[stable23] Fix source of translations

2 years agoMerge pull request #29977 from nextcloud/backport/29974/stable23
Christoph Wurst [Tue, 30 Nov 2021 13:34:17 +0000 (14:34 +0100)]
Merge pull request #29977 from nextcloud/backport/29974/stable23

[stable23] Let repair step query exceptions bubble up

2 years agoInclude previous execption for repair steps that don't exist 29977/head
Christoph Wurst [Tue, 30 Nov 2021 09:57:49 +0000 (10:57 +0100)]
Include previous execption for repair steps that don't exist

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2 years agoLet repair step query exceptions bubble up
Christoph Wurst [Tue, 30 Nov 2021 07:56:41 +0000 (08:56 +0100)]
Let repair step query exceptions bubble up

And hide the type error caused by a constructor call with missing
arguments.

`new $repairStep();` only works for the rare case that no arguments are
required. Anything else will throw. Then we previously hid the trace of
the more important query exception.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2 years agoMerge pull request #29970 from nextcloud/backport/29870/stable23
Louis [Tue, 30 Nov 2021 09:03:04 +0000 (10:03 +0100)]
Merge pull request #29970 from nextcloud/backport/29870/stable23

[stable23] Prevent your own status from replacing another user's status on profile

2 years agoPrevent your own status from replacing another user's status 29970/head
Christopher Ng [Mon, 29 Nov 2021 18:55:35 +0000 (18:55 +0000)]
Prevent your own status from replacing another user's status

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years agoMerge pull request #29961 from nextcloud/backport/29951/stable23
Christoph Wurst [Mon, 29 Nov 2021 19:04:25 +0000 (20:04 +0100)]
Merge pull request #29961 from nextcloud/backport/29951/stable23

[stable23] Interpolate the log message also for logged exceptions

2 years agoFix source of translations 29967/head
Christopher Ng [Fri, 26 Nov 2021 02:00:40 +0000 (02:00 +0000)]
Fix source of translations

Signed-off-by: Christopher Ng <chrng8@gmail.com>
2 years agoInterpolate the log message also for logged exceptions 29961/head
Christoph Wurst [Mon, 29 Nov 2021 13:29:35 +0000 (14:29 +0100)]
Interpolate the log message also for logged exceptions

According to PSR-3 the log message can have placeholders that are
replaced from the context object. Our logger implementation did that for
all PSR-3 logger methods. The only exception was our custom `logException`.

Since PsrLoggerAdapter calls logException when an exception key is
present in the context object, log messages were no longer interpolated.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2 years agoMerge pull request #29937 from nextcloud/dependabot/npm_and_yarn/stable23/testing...
dependabot[bot] [Sat, 27 Nov 2021 14:59:15 +0000 (14:59 +0000)]
Merge pull request #29937 from nextcloud/dependabot/npm_and_yarn/stable23/testing-library/jest-dom-5.15.1

2 years agoBump @testing-library/jest-dom from 5.15.0 to 5.15.1 29937/head
dependabot[bot] [Sat, 27 Nov 2021 14:13:27 +0000 (14:13 +0000)]
Bump @testing-library/jest-dom from 5.15.0 to 5.15.1

Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.15.0 to 5.15.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.15.0...v5.15.1)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #29936 from nextcloud/dependabot/npm_and_yarn/stable23/sass-1...
dependabot[bot] [Sat, 27 Nov 2021 06:15:07 +0000 (06:15 +0000)]
Merge pull request #29936 from nextcloud/dependabot/npm_and_yarn/stable23/sass-1.43.5

2 years agoBump sass from 1.43.4 to 1.43.5 29936/head
dependabot[bot] [Sat, 27 Nov 2021 03:17:43 +0000 (03:17 +0000)]
Bump sass from 1.43.4 to 1.43.5

Bumps [sass](https://github.com/sass/dart-sass) from 1.43.4 to 1.43.5.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.43.4...1.43.5)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #29925 from nextcloud/release/23.0.0 v23.0.0
blizzz [Fri, 26 Nov 2021 20:49:32 +0000 (21:49 +0100)]
Merge pull request #29925 from nextcloud/release/23.0.0

23.0.0

2 years agoMerge pull request #29928 from nextcloud/backport/29926/stable23
blizzz [Fri, 26 Nov 2021 19:58:36 +0000 (20:58 +0100)]
Merge pull request #29928 from nextcloud/backport/29926/stable23

[stable23] obey  accounts_data column length when inserting and searching

2 years agoObey col length of 255 to insert and search in accounts_data 29928/head
Arthur Schiwon [Fri, 26 Nov 2021 15:30:14 +0000 (16:30 +0100)]
Obey col length of 255 to insert and search in accounts_data

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2 years agoadd method to shorten a string to given byte size to Utils
Arthur Schiwon [Fri, 26 Nov 2021 15:21:40 +0000 (16:21 +0100)]
add method to shorten a string to given byte size to Utils

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2 years agoMerge pull request #29918 from nextcloud/backport/29871/stable23
Pytal [Fri, 26 Nov 2021 17:16:22 +0000 (09:16 -0800)]
Merge pull request #29918 from nextcloud/backport/29871/stable23

2 years agoNextcloud Hub II 29925/head
John Molakvoæ (skjnldsv) [Fri, 26 Nov 2021 15:50:40 +0000 (16:50 +0100)]
Nextcloud Hub II

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2 years agoSet number of visibility dropdown rows dynamically 29918/head
Christopher Ng [Fri, 26 Nov 2021 00:51:57 +0000 (00:51 +0000)]
Set number of visibility dropdown rows dynamically

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2 years agoMerge pull request #29848 from nextcloud/backport/29836/stable23
MichaIng [Fri, 26 Nov 2021 14:46:16 +0000 (15:46 +0100)]
Merge pull request #29848 from nextcloud/backport/29836/stable23

[stable23] Make sure mapping cache is cleared when deleting a user

2 years ago23.0.0
John Molakvoæ (skjnldsv) [Fri, 26 Nov 2021 14:37:06 +0000 (15:37 +0100)]
23.0.0

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2 years agoTest cache invalidation for AbstractMapping in test suite 29848/head
Côme Chilliet [Mon, 22 Nov 2021 13:57:08 +0000 (14:57 +0100)]
Test cache invalidation for AbstractMapping in test suite

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years agoMake sure mapping cache is cleared when deleting a user
Côme Chilliet [Mon, 22 Nov 2021 13:49:34 +0000 (14:49 +0100)]
Make sure mapping cache is cleared when deleting a user

This avoids phantom remnants staying after user deletion

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2 years agoMerge pull request #29913 from nextcloud/backport/29906/stable23
Carl Schwan [Fri, 26 Nov 2021 10:16:15 +0000 (11:16 +0100)]
Merge pull request #29913 from nextcloud/backport/29906/stable23

[stable23] Use strict comparison to detect usage of redis cluster

2 years agoMerge pull request #29916 from nextcloud/backport/29893/stable23
Carl Schwan [Fri, 26 Nov 2021 10:15:37 +0000 (11:15 +0100)]
Merge pull request #29916 from nextcloud/backport/29893/stable23

[stable23] Improve accessibility for personal info settings and profile

3 years agoImprove accessibility 29916/head
Christopher Ng [Fri, 26 Nov 2021 00:16:02 +0000 (00:16 +0000)]
Improve accessibility

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
3 years agoMerge pull request #29909 from nextcloud/backport/29891/stable23
Pytal [Fri, 26 Nov 2021 00:10:58 +0000 (16:10 -0800)]
Merge pull request #29909 from nextcloud/backport/29891/stable23

3 years agoMerge pull request #29908 from nextcloud/backport/29894/stable23
Joas Schilling [Thu, 25 Nov 2021 21:56:13 +0000 (22:56 +0100)]
Merge pull request #29908 from nextcloud/backport/29894/stable23

[stable23] Fix inactive profile parameters being displayed in the Profile visibility section

3 years agoUse strict comparison to detect usage of redis cluster 29913/head
Louis Chemineau [Thu, 25 Nov 2021 15:19:42 +0000 (16:19 +0100)]
Use strict comparison to detect usage of redis cluster

Signed-off-by: Louis Chemineau <louis@chmn.me>
3 years agoAdjust margin of status on profile 29909/head
Christopher Ng [Thu, 25 Nov 2021 01:37:54 +0000 (01:37 +0000)]
Adjust margin of status on profile

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
3 years agoFix inactive profile parameters being returned 29908/head
Christopher Ng [Thu, 25 Nov 2021 05:01:18 +0000 (05:01 +0000)]
Fix inactive profile parameters being returned

Signed-off-by: Christopher Ng <chrng8@gmail.com>
3 years agoMerge pull request #29800 from nextcloud/backport/29632/stable23
MichaIng [Thu, 25 Nov 2021 16:13:34 +0000 (17:13 +0100)]
Merge pull request #29800 from nextcloud/backport/29632/stable23

[stable23] fix imagecreatetruecolor() error

3 years agoMerge pull request #29898 from nextcloud/backport/29895/stable23
Joas Schilling [Thu, 25 Nov 2021 13:14:45 +0000 (14:14 +0100)]
Merge pull request #29898 from nextcloud/backport/29895/stable23

[stable23] Check for invalid characters before trimming

3 years agoCorrectly set the response after a ClientException as well 29898/head
Joas Schilling [Thu, 25 Nov 2021 08:07:46 +0000 (09:07 +0100)]
Correctly set the response after a ClientException as well

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoAdd an integration test
Joas Schilling [Thu, 25 Nov 2021 08:07:34 +0000 (09:07 +0100)]
Add an integration test

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoCheck for invalid characters before trimming
Joas Schilling [Thu, 25 Nov 2021 07:48:26 +0000 (08:48 +0100)]
Check for invalid characters before trimming

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMerge pull request #29877 from nextcloud/backport/29869/stable23
Pytal [Wed, 24 Nov 2021 19:07:38 +0000 (11:07 -0800)]
Merge pull request #29877 from nextcloud/backport/29869/stable23

3 years agoMerge pull request #29882 from nextcloud/backport/29826/stable23
szaimen [Wed, 24 Nov 2021 16:41:44 +0000 (17:41 +0100)]
Merge pull request #29882 from nextcloud/backport/29826/stable23

[stable23] Personalsettings - fix marginLeft as it breaks the layout

3 years agoPersonalsettings - remove marginLeft as it breaks the layout 29882/head
szaimen [Sun, 21 Nov 2021 14:44:01 +0000 (15:44 +0100)]
Personalsettings - remove marginLeft as it breaks the layout

Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
3 years agoMerge pull request #29876 from nextcloud/backport/29864/stable23
Vincent Petry [Wed, 24 Nov 2021 11:45:43 +0000 (12:45 +0100)]
Merge pull request #29876 from nextcloud/backport/29864/stable23

[stable23] Allow to fetch the creation time of folders

3 years agoHide user status from public 29877/head
Christopher Ng [Tue, 23 Nov 2021 22:58:44 +0000 (22:58 +0000)]
Hide user status from public

Signed-off-by: Christopher Ng <chrng8@gmail.com>
3 years agoAllow to fetch the creation time of folders 29876/head
Julius Härtl [Tue, 23 Nov 2021 15:55:33 +0000 (16:55 +0100)]
Allow to fetch the creation time of folders

Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 years agoMerge pull request #29858 from nextcloud/backport/29791/stable23
Pytal [Wed, 24 Nov 2021 00:19:19 +0000 (16:19 -0800)]
Merge pull request #29858 from nextcloud/backport/29791/stable23

3 years agoMerge pull request #29847 from nextcloud/backport/29833/stable23
szaimen [Tue, 23 Nov 2021 16:33:34 +0000 (17:33 +0100)]
Merge pull request #29847 from nextcloud/backport/29833/stable23

[stable23] make profile page usable on mobile

3 years agofix imagecreatetruecolor() error 29800/head
szaimen [Wed, 10 Nov 2021 14:50:15 +0000 (15:50 +0100)]
fix imagecreatetruecolor() error

Signed-off-by: szaimen <szaimen@e.mail.de>
3 years agomake profile page usable on mobile 29847/head
szaimen [Mon, 22 Nov 2021 12:17:40 +0000 (13:17 +0100)]
make profile page usable on mobile

Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
3 years agoFix multiple bugs with user status 29858/head
Carl Schwan [Fri, 19 Nov 2021 14:09:05 +0000 (15:09 +0100)]
Fix multiple bugs with user status

* Fix editing the status while on a call, don't send a bogus request
* Clean backup user status when setting up a new status manually
* A bit more type hinting

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years agoMerge pull request #29844 from nextcloud/backport/29567/stable23
Louis [Tue, 23 Nov 2021 13:19:42 +0000 (14:19 +0100)]
Merge pull request #29844 from nextcloud/backport/29567/stable23

[stable23] Improve sorting of profile visibility dropdowns

3 years agoMerge pull request #29845 from nextcloud/backport/29544/stable23
Louis [Tue, 23 Nov 2021 13:17:43 +0000 (14:17 +0100)]
Merge pull request #29845 from nextcloud/backport/29544/stable23

[stable23] Fix wording on profile page

3 years agoMerge pull request #29849 from nextcloud/backport/29835/stable23
Vincent Petry [Tue, 23 Nov 2021 13:03:01 +0000 (14:03 +0100)]
Merge pull request #29849 from nextcloud/backport/29835/stable23

[stable23] Fix getting subnet of ipv4 mapped ipv6 addresses

3 years agoType hint in IpAddress 29849/head
Vincent Petry [Mon, 22 Nov 2021 16:36:26 +0000 (17:36 +0100)]
Type hint in IpAddress

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
3 years agoImprove normalizer detecting IPv4 inside of IPv6
Vincent Petry [Mon, 22 Nov 2021 14:53:41 +0000 (15:53 +0100)]
Improve normalizer detecting IPv4 inside of IPv6

The subnet for an IPv4 address inside of IPv6 is now returned in its
IPv4 form.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoFix getting subnet of ipv4 mapped ipv6 addresses
Vincent Petry [Mon, 22 Nov 2021 13:01:41 +0000 (14:01 +0100)]
Fix getting subnet of ipv4 mapped ipv6 addresses

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoFix wording on profile page 29845/head
Christopher Ng [Thu, 4 Nov 2021 01:14:24 +0000 (01:14 +0000)]
Fix wording on profile page

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
3 years agoImprove sorting 29844/head
Christopher Ng [Thu, 4 Nov 2021 22:34:12 +0000 (22:34 +0000)]
Improve sorting
- Extract sort logic into a separate function
- Sort non-core parameters with localeCompare

Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
3 years agoMerge pull request #29815 from nextcloud/dependabot/composer/build/integration/stable...
dependabot[bot] [Mon, 22 Nov 2021 20:43:40 +0000 (20:43 +0000)]
Merge pull request #29815 from nextcloud/dependabot/composer/build/integration/stable23/sabre/dav-4.2.0

3 years agoUpdate sabre/dav requirement from 4.1.5 to 4.2.0 in /build/integration 29815/head
dependabot[bot] [Mon, 22 Nov 2021 19:58:42 +0000 (19:58 +0000)]
Update sabre/dav requirement from 4.1.5 to 4.2.0 in /build/integration

Updates the requirements on [sabre/dav](https://github.com/sabre-io/dav) to permit the latest version.
- [Release notes](https://github.com/sabre-io/dav/releases)
- [Changelog](https://github.com/sabre-io/dav/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sabre-io/dav/compare/4.1.5...4.2.0)

---
updated-dependencies:
- dependency-name: sabre/dav
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoMerge pull request #29813 from nextcloud/dependabot/npm_and_yarn/stable23/camelcase...
Louis [Mon, 22 Nov 2021 10:06:23 +0000 (11:06 +0100)]
Merge pull request #29813 from nextcloud/dependabot/npm_and_yarn/stable23/camelcase-6.2.1

Bump camelcase from 6.2.0 to 6.2.1

3 years agoMerge pull request #29828 from nextcloud/backport/29708/stable23
Joas Schilling [Mon, 22 Nov 2021 08:24:15 +0000 (09:24 +0100)]
Merge pull request #29828 from nextcloud/backport/29708/stable23

[stable23] Do not print verbose info about app updates if there are none

3 years agoDo not print verbose info about app updates if there are none 29828/head
Christoph Wurst [Mon, 15 Nov 2021 13:34:09 +0000 (14:34 +0100)]
Do not print verbose info about app updates if there are none

This is cosmetical but if you have a large number of apps installed then
you'll see a wall of text during the server and app upgrade when it
tries to update each app via the app store. In may cases nothing will be
updated. For those boring cases we can hide the verbose info, but show
when occ is run with -v. Any actual update will still print a few lines.
Those are the important ones for the admin.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years agoMerge pull request #29793 from nextcloud/backport/29605/stable23
MichaIng [Sun, 21 Nov 2021 19:02:09 +0000 (20:02 +0100)]
Merge pull request #29793 from nextcloud/backport/29605/stable23

[stable23] Normalize file name before existence check in scanner

3 years agoMerge pull request #29797 from nextcloud/backport/29788/stable23
MichaIng [Sun, 21 Nov 2021 18:58:52 +0000 (19:58 +0100)]
Merge pull request #29797 from nextcloud/backport/29788/stable23

[stable23] Fix doc link in sharing settings

3 years agoBump camelcase from 6.2.0 to 6.2.1 29813/head
dependabot[bot] [Sat, 20 Nov 2021 03:32:16 +0000 (03:32 +0000)]
Bump camelcase from 6.2.0 to 6.2.1

Bumps [camelcase](https://github.com/sindresorhus/camelcase) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/sindresorhus/camelcase/releases)
- [Commits](https://github.com/sindresorhus/camelcase/compare/v6.2.0...v6.2.1)

---
updated-dependencies:
- dependency-name: camelcase
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoFix doc link in sharing settings 29797/head
Vincent Petry [Fri, 19 Nov 2021 13:58:44 +0000 (14:58 +0100)]
Fix doc link in sharing settings

The doc link "i" icon was on the wrong line.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoMerge pull request #29789 from nextcloud/backport/29784/stable23
szaimen [Fri, 19 Nov 2021 15:24:45 +0000 (16:24 +0100)]
Merge pull request #29789 from nextcloud/backport/29784/stable23

[stable23] App summary is optional

3 years agoNormalize directory entries in Encoding wrapper 29793/head
Vincent Petry [Wed, 17 Nov 2021 08:19:10 +0000 (09:19 +0100)]
Normalize directory entries in Encoding wrapper

Directory entry file names are now normalized in getMetaData(),
getDirectoryContents() and opendir().

This makes the scanner work properly as it assumes pre-normalized names.

In case the names were not normalized, the scanner will now skip the
entries and display a warning when applicable.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoMove storage encoding compatibility warning logic
Vincent Petry [Wed, 10 Nov 2021 14:09:25 +0000 (15:09 +0100)]
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>
3 years agoNormalize file name before existence check in scanner
Vincent Petry [Tue, 9 Nov 2021 10:56:10 +0000 (11:56 +0100)]
Normalize file name before existence check in scanner

The scanner would not find a NFD-encoded file name in an
existing file list that is normalized.

This normalizes the file name before scanning.

Fixes issues where scanning repeatedly would make NFD files flicker in
and out of existence in the file cache.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
3 years agoApp summary is optional 29789/head
Joas Schilling [Fri, 19 Nov 2021 13:02:03 +0000 (14:02 +0100)]
App summary is optional

Fixing:
Error: Undefined index: summary at /var/www/html/apps/theming/lib/Controller/ThemingController.php#392

Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years agoMerge pull request #29766 from nextcloud/version/23rc3 v23.0.0rc3
blizzz [Thu, 18 Nov 2021 14:28:12 +0000 (15:28 +0100)]
Merge pull request #29766 from nextcloud/version/23rc3

23 RC 3

3 years agoMerge pull request #29760 from nextcloud/backport/29752/stable23
blizzz [Thu, 18 Nov 2021 14:27:22 +0000 (15:27 +0100)]
Merge pull request #29760 from nextcloud/backport/29752/stable23

[stable23] Explicitly allow some routes without 2FA

3 years ago23 RC 3 29766/head
Arthur Schiwon [Thu, 18 Nov 2021 12:58:39 +0000 (13:58 +0100)]
23 RC 3

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
3 years agoExplicitly allow some routes without 2FA 29760/head
Christoph Wurst [Wed, 17 Nov 2021 17:42:21 +0000 (18:42 +0100)]
Explicitly allow some routes without 2FA

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years agoMerge pull request #29749 from nextcloud/backport/29747/stable23
Carl Schwan [Wed, 17 Nov 2021 19:55:12 +0000 (20:55 +0100)]
Merge pull request #29749 from nextcloud/backport/29747/stable23

[stable23] Allow to serve static WebAssembly and TensorFlow Lite files

3 years agoMerge pull request #29746 from nextcloud/backport/29734/stable23
rakekniven [Wed, 17 Nov 2021 15:56:05 +0000 (16:56 +0100)]
Merge pull request #29746 from nextcloud/backport/29734/stable23

[stable23] Fixed grammar

3 years agoAllow to serve static WebAssembly and TensorFlow Lite files 29749/head
Daniel Calviño Sánchez [Wed, 17 Nov 2021 11:30:12 +0000 (12:30 +0100)]
Allow to serve static WebAssembly and TensorFlow Lite files

Since Talk 13 (and thus Nextcloud 23) WebAssembly (.wasm) and TensorFlow
Lite (.tflite) files need to be loaded from the web server to provide
certain features (like the background blur in the WebUI).

Those files can be treated in a similar way to other static resources,
and there should not be any problem caching or compressing them.
However, as compressed TensorFlow Lite files are only ~12% smaller,
the compression directive depends on the MIME type and there is no
standard MIME type for TensorFlow Lite files it is not worth to compress
them.

Moreover, no directives to compress WebAssembly files were added either,
as it seems that they would override any other compression directives
set in the default server configuration; for reference it could be done
with something like:
<IfModule mod_deflate.c>
  <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE application/wasm
  </IfModule>
</IfModule>

Depending on the setup "application/wasm" may not be associated with
".wasm" files, so the directive was added just in case, as otherwise
browsers log a warning.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
3 years agoMerge pull request #29672 from nextcloud/backport/29663/stable23
Vincent Petry [Wed, 17 Nov 2021 12:14:47 +0000 (13:14 +0100)]
Merge pull request #29672 from nextcloud/backport/29663/stable23

[stable23] Fix loading all principal calendars in the dav app calendar provider

3 years agoMerge pull request #29662 from nextcloud/enhancement/calendar-search-properties-api...
Vincent Petry [Wed, 17 Nov 2021 12:14:05 +0000 (13:14 +0100)]
Merge pull request #29662 from nextcloud/enhancement/calendar-search-properties-api-stable23

[stable23] Document allowed property names for calendar property searches

3 years agoFixed grammar 29746/head
rakekniven [Tue, 16 Nov 2021 17:13:05 +0000 (18:13 +0100)]
Fixed grammar

Reported at Transifex.

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
3 years agoMerge pull request #29737 from nextcloud/backport/29695/stable23
Vincent Petry [Wed, 17 Nov 2021 07:10:45 +0000 (08:10 +0100)]
Merge pull request #29737 from nextcloud/backport/29695/stable23

[stable23] Fix missing setlocale with php 8

3 years agoOC_Util::isNonUTF8Locale: fix lint error 29737/head
Naoto Kobayashi [Tue, 16 Nov 2021 12:05:43 +0000 (21:05 +0900)]
OC_Util::isNonUTF8Locale: fix lint error

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
3 years agoOC_Util::isSetLocaleWorking: fix typo
Naoto Kobayashi [Mon, 15 Nov 2021 15:46:21 +0000 (00:46 +0900)]
OC_Util::isSetLocaleWorking: fix typo

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
3 years agoOC_Util: Add fallbacks to check if current locale is UTF8
Naoto Kobayashi [Mon, 15 Nov 2021 15:40:52 +0000 (00:40 +0900)]
OC_Util: Add fallbacks to check if current locale is UTF8

Using escapeshellcmd to get current locale causes error
if the function is disabled.

Add fallbacks to prevent the error.

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
3 years agoAdd check whether escapeshellcmd behaves the same as basename
Naoto Kobayashi [Mon, 15 Nov 2021 09:33:50 +0000 (18:33 +0900)]
Add check whether escapeshellcmd behaves the same as basename

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
3 years agoCheck whether setlocale works only after setlocale
Naoto Kobayashi [Sat, 13 Nov 2021 23:25:32 +0000 (08:25 +0900)]
Check whether setlocale works only after setlocale

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
3 years agoFix missing setlocale with php 8
Naoto Kobayashi [Sat, 13 Nov 2021 15:58:36 +0000 (00:58 +0900)]
Fix missing setlocale with php 8

When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale.
This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8").

Fix it by using escapeshellcmd instead of basename.

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
3 years agoMerge pull request #29728 from nextcloud/backport/29683/stable23
MichaIng [Tue, 16 Nov 2021 12:24:26 +0000 (13:24 +0100)]
Merge pull request #29728 from nextcloud/backport/29683/stable23

[stable23] Fix core depending on theming app

3 years agoCorrect comment about OC_Defaults being used 29728/head
MichaIng [Mon, 15 Nov 2021 17:44:02 +0000 (18:44 +0100)]
Correct comment about OC_Defaults being used

Signed-off-by: MichaIng <micha@dietpi.com>
3 years agoFix core depending on theming app
Carl Schwan [Fri, 12 Nov 2021 14:04:24 +0000 (15:04 +0100)]
Fix core depending on theming app

This was introduced in https://github.com/nextcloud/server/commit/309354852f12ae88d5eef05d311d6ebcba8ee762
to fix a bug but I can't reproduce the bug after reverting this change.

Ideally we would need to create an interface in OCP and cleanup OC_Defaults
instead of depending on OC_Defaults.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years agoMerge pull request #29716 from nextcloud/bump-doctrine-dbal-23
John Molakvoæ [Mon, 15 Nov 2021 18:55:18 +0000 (19:55 +0100)]
Merge pull request #29716 from nextcloud/bump-doctrine-dbal-23