Commit graph

12309 commits

Author SHA1 Message Date
Arthur Schiwon
7e4853089d
Merge pull request #36750 from nextcloud/backport/36689/stable24
[stable24] Change X-Robots-Tag header from "none" to "noindex, nofollow"
2023-03-15 14:50:29 +01:00
Arthur Schiwon
a3a05f4a06
Merge pull request #36900 from nextcloud/backport/stable24/36837
[stable24] fix(SystemTagManager): Truncate overlong tag names
2023-03-15 14:41:10 +01:00
Julien Veyssier
5b08f8481c
manual backport of #35057
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-03-15 10:19:35 +01:00
Simon L
ea6b4c69c9
Merge pull request #37004 from nextcloud/backport/36803/stable24
[stable24] [db]: Remove not supported column comments for SQLite
2023-03-14 13:14:06 +01:00
Simon L
2c6574a728 add a check for disk_free_space in Config.php
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-03-09 23:24:41 +00:00
Ferdinand Thiessen
ffbe94480c fix(DB): Remove not supported column comments when using SQLite
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-03-02 11:57:43 +00:00
Marcel Klehr
60395a898e fix(SystemTagManager): Truncate overlong tag names
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-02-28 14:52:47 +01:00
Joas Schilling
0dd3b40260
Fix appconfig compatibility with Oracle DB
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-28 09:16:52 +01:00
Joas Schilling
84e5d349ed
fix(OCC): Don't throw in the repair step for phone validation
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-28 09:15:52 +01:00
Julius Härtl
a04ed00f63 fix: Avoid resetting scss cacher when no variables are found
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-27 07:30:50 +00:00
Simon L
a420cb97df
Merge pull request #36730 from nextcloud/backport/36691/stable24
[stable24] add a disk_free_space check before writing config
2023-02-24 10:19:48 +01:00
Côme Chilliet
5061926573 Avoid extra parenthesis around SQL in IN expressions
The expression builder already suround the SQL with parenthesis when
 using in(), so we must not add another pair, this confuses at least
 sqlite.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-02-21 16:56:44 +00:00
Simon L
b3a64a9121 fix it for 32-bit
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-02-20 10:15:20 +01:00
MichaIng
30c0937205 Change X-Robots-Tag header from "none" to "noindex, nofollow"
While "none" is indeed equivalent to "noindex, nofollow" for Google, but seems to be not supported by Bing and probably other search engines.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name#other_metadata_names
https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=de#comma-separated-list
https://www.bing.com/webmasters/help/which-robots-metatags-does-bing-support-5198d240

Signed-off-by: MichaIng <micha@dietpi.com>
2023-02-16 10:55:36 +00:00
Simon L
b3fb30b8b0 address review by Joas
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-02-15 17:57:06 +00:00
Simon L
a87f45a6ca add a disk_free_space check before writing config
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-02-15 17:57:03 +00:00
blizzz
4d0a68eca1
Merge pull request #36441 from nextcloud/backport/36433/stable24
[stable24] fix(encryption): don't throw on missing file
2023-02-09 13:07:18 +01:00
blizzz
6ff9ca9bfc
Merge pull request #36376 from nextcloud/backport/35894/stable24
[stable24] fix moving files of encrypted local storage to unencrypted local storage
2023-02-09 12:28:48 +01:00
Richard Steinmetz
18ca00b216 fix(encryption): don't throw on missing file
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-02-07 18:12:12 +00:00
Robin Appelman
920e8ad21a fix moving files of encrypted local storage to unencrypted local storage
for example when moving encrypted files to a groupfolder

Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-02-07 18:00:28 +00:00
Joas Schilling
fc711c9539 Fix double where() usage in resource manager
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-07 17:59:46 +00:00
Julius Härtl
f23532b095 Do not store generated mysql password if it was not used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-01-27 06:43:39 +00:00
Simon L
664133edbb imaginary - add tiff to supported formats
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-01-25 20:23:44 +00:00
Christoph Wurst
fa08275ab2
Merge pull request #35824 from nextcloud/backport/35614/stable24
[stable24] Fix array to string conversion in errorlog writer
2023-01-25 19:34:19 +01:00
Christoph Wurst
f9fc4fbdd9
fix(logging): Fix array to string conversion in errorlog writer
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-01-24 08:54:10 +01:00
Vincent Petry
617088835f
Merge pull request #35946 from nextcloud/backport/33813/stable24
[stable24] Compare lowercase email when updating from ldap
2023-01-19 10:13:10 +01:00
Julius Härtl
739d6951f8
Merge pull request #36168 from nextcloud/backport/35970/stable24
[stable24] Improve exception serializing
2023-01-19 10:09:37 +01:00
Julius Härtl
a2073f4d4d
fix(ExceptionSerializer): encode arguments before filtering the trace
This will avoid running into a Nesting level too deep error as the
encodeArg calls will limit potential recursive calls on the arguments to
a nesting level of 5

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-01-18 16:34:52 +01:00
Robin Appelman
0bd5bcdaeb escape path prefix when doing cache jail search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-01-11 17:12:40 +00:00
John Molakvoæ
467c213795
Merge pull request #35094 from nextcloud/invalidateTokensWhenDeletingOAuthClient
fixes https://github.com/nextcloud/server/issues/35068
2023-01-06 08:52:57 +01:00
Louis Chemineau
34a93a0e12 I dug into it again, and the issue is much simpler than I previously though.
- LDAP has an email address with capital letters
- NC store this address in lower case
- When the user logs in, we compare the [stored email with the new lower case email](https://github.com/nextcloud/server/blob/master/lib/private/AllConfig.php#L259-L261) before storing it. Here, both email will be the same, so we won't store the new email address with upper case letters. Which is what we want.
- We then [compare emails as they are before triggering an event](https://github.com/nextcloud/server/blob/master/lib/private/User/User.php#L202-L204), they won't match, so the user will receive an email signaling an email change every time he logs in.

The fix is to compare the old email with the new lower case email before sending the event.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-01-02 15:30:15 +00:00
Côme Chilliet
6def133792
Remove null from quota type
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-02 15:49:53 +01:00
Côme Chilliet
602cc7260c
Silence a warning from psalm with explanation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-02 12:24:29 +01:00
Côme Chilliet
39cb3549be
Adapt types of subclasses
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-02 12:24:18 +01:00
Côme Chilliet
5421510b12
Make it clear that file sizes may be float on 32bits
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-02 12:24:05 +01:00
Vincent Petry
82397529ef
Remove quota value type for 32-bit systems
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2023-01-02 12:22:07 +01:00
Artur Neumann
0570327c7e public interface to invalidate tokens of user
Signed-off-by: Artur Neumann <artur@jankaritech.com>
2022-12-20 16:26:49 +00:00
Christoph Wurst
125ddf01cc fix(logging): Fix array to string conversion in errorlog writer
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-12-19 13:46:38 +00:00
Vincent Petry
28b8d6b94f
Merge pull request #35799 from nextcloud/backport/35780/stable24
[stable24] Fix missing cast of double controller parameters
2022-12-19 12:07:23 +01:00
Vincent Petry
488d10b6fc
Merge pull request #35524 from nextcloud/backport/35502/stable24
[stable24] Fix SQL comparison with int array during external storage deletion
2022-12-16 18:16:04 +01:00
Christoph Wurst
7fceb57843 fix(app framework): Fix missing cast of double controller parameters
``settype`` allows 'double' as alias of 'float'.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-12-16 15:33:51 +00:00
Vincent Petry
07361adb48
Merge pull request #35657 from nextcloud/backport/35649/stable24
[stable24] Update the unencrypted file size when closing streams
2022-12-16 16:33:24 +01:00
Artur Neumann
8cf9878fd2 check if params given to API are really an array
Signed-off-by: Artur Neumann <artur@jankaritech.com>
2022-12-16 10:50:41 +00:00
Varun Patil
eea1f3c53e preview: fix HEIC orientation
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
2022-12-11 11:19:57 +00:00
Julius Härtl
d843ba9822 Also update the unencrypted size of files when creating them with empty content
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-07 21:15:57 +00:00
Julius Härtl
da45a807ac Update the unencrypted file size when closing streams
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-07 21:15:57 +00:00
Andy Xheli
775c62860c Fix Executing a query: SQLSTATE[42000]
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>

Fix https://github.com/nextcloud/server/issues/32007#issuecomment-1329405245

Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
2022-11-30 15:04:47 +00:00
Vincent Petry
c73f11ba4d
Float the quota
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-11-24 21:09:28 +01:00
Vincent Petry
7a66cb84dc
Revert "[stable24] Fix quota type to int"
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-11-24 21:09:28 +01:00
Louis
8707beb89c
Merge pull request #35367 from nextcloud/backport/35353/stable24
[stable24] Update cache when file size === 0
2022-11-23 19:39:59 +01:00