Skip to content

fix(SharedStorage): Check if storage ID is set on cache - #50769

Merged
ChristophWurst merged 1 commit into
masterfrom
checkStorageIdSetCache
Feb 14, 2025
Merged

fix(SharedStorage): Check if storage ID is set on cache#50769
ChristophWurst merged 1 commit into
masterfrom
checkStorageIdSetCache

Conversation

@solracsf

@solracsfsolracsf commented Feb 12, 2025

Copy link
Copy Markdown
Member

Summary

Else handle cache updating by the share source

Checklist

@solracsf
solracsfforce-pushed the checkStorageIdSetCache branch 2 times, most recently from b3823e0 to 84aafa2CompareFebruary 12, 2025 16:34
@solracsf
solracsf marked this pull request as ready for review February 12, 2025 16:36
@solracsfsolracsf added this to the Nextcloud 32 milestone Feb 12, 2025
Comment threadapps/files_sharing/lib/SharedStorage.php Outdated
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf
solracsfforce-pushed the checkStorageIdSetCache branch from 84aafa2 to bc3be77CompareFebruary 13, 2025 07:29
@solracsf
solracsf requested a review from susnuxFebruary 13, 2025 07:29

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not an expert for file sharing but this looks sane and like a good hardening 👍

@gonzalo

This comment was marked as off-topic.

@susnux

Copy link
Copy Markdown
Contributor

Running nextcloud 30.0.5

Yes because the parameter is incompatible on 30. You need to remove the array before $parameters

@gonzalo

Copy link
Copy Markdown
Contributor

I will try but... commit should be adapted depending on nextcloud version?

@solracsf

Copy link
Copy Markdown
MemberAuthor

I will try but... commit should be adapted depending on nextcloud version?

Yes, dont replace a file from different branches. You can always apply the patch:
https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/50769.patch
https://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/

But, if you're not familiar with these, just wait for an official and released version please (recommended).

@inDane

Copy link
Copy Markdown

I will try but... commit should be adapted depending on nextcloud version?

Yes, dont replace a file from different branches. You can always apply the patch: https://patch-diff.githubusercontent.com/raw/nextcloud/server/pull/50769.patchhttps://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/

But, if you're not familiar with these, just wait for an official and released version please (recommended).

I've tried this for Nxcl 29.0.11.1 but i think the patch is for nextcloud 30, right? Because for me it failed. Just a heads up for others.

@ChristophWurst
ChristophWurst merged commit 228ac86 into masterFeb 14, 2025
@ChristophWurst
ChristophWurst deleted the checkStorageIdSetCache branch February 14, 2025 13:17
@solracsf

Copy link
Copy Markdown
MemberAuthor

/backport to stable31

@solracsf

Copy link
Copy Markdown
MemberAuthor

/backport to stable30

@solracsf

Copy link
Copy Markdown
MemberAuthor

/backport to stable29

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbugregression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Undefined array key "storage_string_id" at /apps/files_sharing/lib/SharedStorage.php#483

7 participants

@solracsf@gonzalo@susnux@inDane@ChristophWurst@Altahrim@skjnldsv