| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Update doc comment for prefixTableName
|
| | | | | | |
| | | | | | |
| | | | | | | |
Signed-off-by: S1m <31284753+p1gp1g@users.noreply.github.com>
|
| |_|_|_|/ /
|/| | | | |
| | | | | |
| | | | | | |
Signed-off-by: Robin Appelman <robin@icewind.nl>
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
fix: Initialize lastConnectionCheck after first connection
|
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We are checking whether the DB connection is alive once every 30 seconds. But when we are lacking the last check time, we are skipping the check and reconnect logic. This is causing the reconnect logic to never fire in those cases.
It seems to me that "those cases", are actually always the case, as upon initialization, we are not using the proper connection name to store the time.
In the `connect()` logic, when `$this->_conn` is null, `$this->getConnectionName()` is returning `replica`, so `$this->lastConnectionCheck` will be equal to `['replica' => time()];`
https://github.com/nextcloud/server/blob/60711ea4cfde6f53d0b18bcd7e166a34a43056a5/lib/private/DB/Connection.php#L215-L221
https://github.com/nextcloud/server/blob/60711ea4cfde6f53d0b18bcd7e166a34a43056a5/lib/private/DB/Connection.php#L891-L893
https://github.com/nextcloud/3rdparty/blob/2b6d7bf65ff242ea050e736925f752a38d8da220/doctrine/dbal/src/Connections/PrimaryReadReplicaConnection.php#L136-L139
Then, if the connection name ends up as being 'primary', the reconnect logic is skipped:
https://github.com/nextcloud/server/blob/60711ea4cfde6f53d0b18bcd7e166a34a43056a5/lib/private/DB/Connection.php#L874-L880
Follow-up of https://github.com/nextcloud/server/pull/41819
Signed-off-by: Louis Chemineau <louis@chmn.me>
|
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
|
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Replace `ValidatePhoneNumber` from Nextcloud 21 with a new repair step,
`ValidateAccountProperties` which validates and sanitizes all account
properties.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
|\ \ \ \
| | | | |
| | | | | |
fix: Change UserAgent to *cloud
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
Co-authored-by: Daniel Kesselberg <mail@danielkesselberg.de>
Signed-off-by: Johannes Endres <je@johannes-endres.de>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
|
|/ / /
| | |
| | |
| | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Joas Schilling <coding@schilljs.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
|\ \ \
| | | |
| | | | |
fix: Fix psalm taint false-positives by small refactorings
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Mostly make it clear that we trust admin input or that we correctly
escape strings.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
|
|/ / /
| | |
| | |
| | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
…in psalm taint analysis
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
This solves some false-positive psalm taint errors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
var_export is listed as a taint sink because it may output stuff
depending on the parameters. It was not the case here, but we can
simply json_encode the result by passing it as context to the logger
method rather than using var_export.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Especially with JSON_HEX_TAG it’s perfectly fine to echo JSON, and we
only use it in JSON output anyway.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
|\ \ \
| | | |
| | | | |
chore(filecache): remove index fs_id_storage_size
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Index is outdated by PR 50781
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
|
|\ \ \ \
| | | | |
| | | | | |
fix(repair): PHP8.3 deprecation warning
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
|
|/ / / /
| | | |
| | | |
| | | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
|
|\ \ \ \
| | | | |
| | | | | |
perf: Log requests using high amount of memory as warning
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Julius Knorr <jus@bitgrid.net>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
fix: Only keep allowed characters in appid, and flag the method as escaping
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
perf(files): faster query to fetch incomplete directories
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Remove all references to installed apps where it’s about enabled apps
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
The method name was really confusing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|