Commit graph

24236 commits

Author SHA1 Message Date
Grigorii K. Shartsev
8b56189f65
Merge pull request #48127 from nextcloud/backport/48114/stable30
[stable30] fix(appstoreFetcher): get list from a custom store and remove unnecessary warning
2024-09-24 00:10:22 +05:00
Andy Scherzinger
6044c9f512
Merge pull request #48285 from nextcloud/backport/48207/stable30
[stable30] fix: Don't crash if disabled user is missing in the database
2024-09-23 21:07:08 +02:00
Andy Scherzinger
2be8b76834
Merge pull request #48302 from nextcloud/backport/48268/stable30
[stable30] fix: skip the integrity check for nextcloud-init-sync.lock
2024-09-23 21:01:40 +02:00
Louis Chemineau
9a34a6c4c4
fix(users): Don't crash if disabled user is missing in the database
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-09-23 18:06:38 +02:00
Joas Schilling
e4524334fa
Merge pull request #48299 from nextcloud/backport/48162/stable30
[stable30] fix(autocomplete): Move known array keys to psalm docs
2024-09-23 17:52:01 +02:00
Daniel Kesselberg
d80be49ed7 fix: skip the integrity check for nextcloud-init-sync.lock
nextcloud-init-sync.lock is used by nextcloud/docker to prevent running the initialization script on multiple containers at the same time.

Ref: https://github.com/nextcloud/docker/issues/2299.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-09-23 15:51:42 +00:00
Joas Schilling
9a91a60414
fix(autocomplete): Move known array keys to psalm docs
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-09-23 17:07:53 +02:00
Nextcloud bot
8383be8f67
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-23 14:52:40 +00:00
Nextcloud bot
b79451c743
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-22 00:20:46 +00:00
Nextcloud bot
de01c48563
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-21 00:20:49 +00:00
Kate
61f3a09dcd
Merge pull request #48233 from nextcloud/backport/48222/stable30 2024-09-20 23:02:25 +02:00
Kate
ae7241f6c8
Merge pull request #48221 from nextcloud/backport/30/fix_move_on_same_bucket 2024-09-20 10:06:14 +02:00
Robin Appelman
e8c8ab58f7 perf: reuse cache info we already have when moving to object store
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-09-20 07:50:23 +00:00
Nextcloud bot
5f32c2f79f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-20 00:21:20 +00:00
Christoph Fiehe
82be489f53 perf(ObjectStoreStorage): Improve (slow) move on same object bucket
This commit fixes the issue #47856. When you upload a file into a group folder and when you use a single S3 bucket as primary storage, the final move operation hangs for a long time. In the background, Nextcloud initiates a copy-delete sequence from the bucket into the bucket, with causes a lot unnecessary overhead. Nextcloud thinks that the file must be imported to another storage and does not recognize that everything is done on the same object bucket. In that case, the import step can be completely skipped, which saves time, network bandwidth and reduces the load on the object storage.

The behavior improves a lot with https://github.com/nextcloud/server/pull/46013. However, there are still some put messages that are being sent to the object storage when you use an object storage as primary storage and upload files into a group folder.

Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com>
Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
2024-09-19 18:53:36 +02:00
Robin Appelman
dd68f678b2 fix: ensure parent folder exists when writing a file to object storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-09-19 13:59:08 +02:00
Robin Appelman
7b1b5526b7 fix: verify that parent exists in cache when inserting
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-09-19 13:59:08 +02:00
Robin Appelman
1e03bd5d18 fix: fix object store id for test object store
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-09-19 13:59:08 +02:00
Robin Appelman
e8c7216d5b fix: cleanup objectstore file_put_content
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-09-19 13:59:08 +02:00
Robin Appelman
9b07b7d9c1 fix: create intermediate directories for objectstore moveFromStorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-09-19 13:59:08 +02:00
Robin Appelman
5bcd74ae87 fix: get source file before moving the cache item in objectstore moveFromStorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-09-19 13:59:08 +02:00
Nextcloud bot
406e74fae7
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-19 00:20:49 +00:00
Ferdinand Thiessen
77321bc6cf
Merge pull request #47944 from nextcloud/backport/47883/stable30
[stable30] fix(setup-checks): Ensure URL with webroot works
2024-09-19 00:19:19 +02:00
Nextcloud bot
dd4caaff0c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-18 09:28:08 +00:00
Nextcloud bot
429fbaf470
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-18 00:22:13 +00:00
Kate
e4f5d39464
Merge pull request #48088 from nextcloud/backport/48008/stable30 2024-09-17 12:53:41 +02:00
Grigorii K. Shartsev
3ee3542bdf fix(appstoreFetcher): get app list from custom app store
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-09-17 09:23:02 +00:00
Grigorii K. Shartsev
9da1675c9e fix(appstoreFetcher): remove unneeded warning
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-09-17 09:23:02 +00:00
John Molakvoæ
781cda5195
Merge pull request #48109 from nextcloud/backport/46218/stable30 2024-09-17 10:14:00 +02:00
Nextcloud bot
06b378c302
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-17 00:20:49 +00:00
John Molakvoæ
2308294a68 chore: improve hash_file php usage in Local Storage
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2024-09-16 17:08:10 +00:00
Louis Chemineau
7c99850958 fix(files): Ensure that the hash method does not return null
To match beececf660/lib/private/Files/View.php (L1050)

- Fix https://github.com/nextcloud/server/issues/44110

Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-09-16 17:08:10 +00:00
Josh Richards
344c9682de fix: switch from explode to substr (faster)
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
2024-09-16 15:06:03 +00:00
Josh Richards
f3e28596c4 fix(config): Add missing handling for envCache in getKeys()
NC_ env variable overrides were not appearing in
the output of `occ config:list system` nor `occ
config:system:get xxx`. This was creating nearly
impossible to diagnose configuration/ behavior
disprepancies.

- Refactored readData() so that we aren't saving
  the entire environment in the envCache anymore
  (only those prefixed "NC_") and so that we save
  NC_ provided config values under their real
  key.
- Refactored getValue() to accommodate readData()
  refactor
- Fixed getKeys() to properly return
  envCache keys too

Environment provided config variables now appear
in `occ config:list system` as expected.

Environment provided config variables now appear
when queried via `occ config:system:get KEY`

envCache is now free of non-NC stuff.

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
2024-09-16 15:06:03 +00:00
provokateurin
b7b5b50050 fix(Entity): Fix magic setter call for custom strong typed setters
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-16 13:52:27 +00:00
Joas Schilling
9371d93249 fix(a11y): Add OTF font loading check
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-09-16 09:26:59 +00:00
Nextcloud bot
70bd525c84
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-16 00:20:18 +00:00
John Molakvoæ
f71f690398
Merge pull request #47868 from nextcloud/backport/47858/stable30 2024-09-15 22:52:11 +02:00
John Molakvoæ
78e11fb244
Merge pull request #47937 from nextcloud/backport/47854/stable30
[stable30] fix(appstore): Ensure returned apps from AppStore are valid
2024-09-15 22:12:12 +02:00
John Molakvoæ
474a323da6
Merge pull request #47872 from nextcloud/backport/47834/stable30 2024-09-15 22:10:02 +02:00
John Molakvoæ
6bc75b85f1
Merge pull request #47804 from nextcloud/backport/47801/stable30 2024-09-15 22:09:01 +02:00
Ferdinand Thiessen
27300ac6ce
fix(setup-checks): Ensure URL with webroot works
We basically mock the way `URLGenerator::getAbsoluteURL` works,
so we must make sure that the URL might already contain the webroot.
Because `baseURL` and `cliURL` also contain the webroot we need to remove
the webroot from the URL first.

Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Co-authored-by: Daniel <mail@danielkesselberg.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-09-15 21:40:27 +02:00
Andy Scherzinger
90a6b82579
Merge pull request #47940 from nextcloud/backport/47933/stable30
[stable30] fix(config): Throw PreconditionException always when it didn't match
2024-09-15 21:29:14 +02:00
Andy Scherzinger
fa355386f7
Merge pull request #47796 from nextcloud/backport/47756/stable30
[stable30] fix(files): Check if target path is a descendant of the shared folder
2024-09-15 21:25:30 +02:00
Git'Fellow
eb95e40d8d fix: check if key is set
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2024-09-15 21:24:08 +02:00
Git'Fellow
9c557066bc fix(appstore): Ensure returned apps from AppStore are valid
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

fix: lint

chore: remove space

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

fix: check if response array is null

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>

chore: Add log
2024-09-15 21:24:08 +02:00
Kate
5559ab8402
Merge pull request #48036 from nextcloud/backport/48016/stable30 2024-09-15 20:34:24 +02:00
provokateurin
69b01a265c fix(S3ConfigTrait): Allow proxy field to take false
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-15 17:19:40 +00:00
provokateurin
ad895bd592 fix(BaseResponse): Cast XML element values to string
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-15 17:18:33 +00:00
Kate
80f8b7c650
Merge pull request #48027 from nextcloud/backport/48014/stable30 2024-09-15 19:00:24 +02:00