Skip to content

fix(sse): don't update uncached files - #39115

Merged
blizzz merged 1 commit into
masterfrom
fix/unecrypted-size-part-files
Jul 4, 2023
Merged

fix(sse): don't update uncached files#39115
blizzz merged 1 commit into
masterfrom
fix/unecrypted-size-part-files

Conversation

@st3iny

@st3inyst3iny commented Jul 3, 2023

Copy link
Copy Markdown
Member
  • Resolves: (not yet reported)

Summary

Certain files (e.g. *.part) are not cached in the file cache and thus have no fileid. However, the encryption storage wrapper tries to update their cache entries regardless which will fail as $info->getId() throws an exception ("Undefined array key \"fileid\").

Checklist

@st3inyst3iny self-assigned this Jul 3, 2023
@st3iny
st3iny marked this pull request as draft July 3, 2023 07:48
Comment threadlib/private/Files/Storage/Wrapper/Encryption.php Fixed

@icewind1991icewind1991 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.

Makes sense

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
@st3iny
st3inyforce-pushed the fix/unecrypted-size-part-files branch from f84dda4 to c4eccbbCompareJuly 4, 2023 10:42
@st3iny

Copy link
Copy Markdown
MemberAuthor

/backport to stable27

@st3iny

Copy link
Copy Markdown
MemberAuthor

/backport to stable26

@st3iny

Copy link
Copy Markdown
MemberAuthor

/backport to stable25

@st3iny
st3iny marked this pull request as ready for review July 4, 2023 10:43
@st3inyst3iny added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jul 4, 2023
@st3iny
st3iny requested a review from come-ncJuly 4, 2023 10:43
@st3inyst3iny added this to the Nextcloud 28 milestone Jul 4, 2023
@st3iny
st3iny requested review from a team, ArtificialOwl and blizzz and removed request for a teamJuly 4, 2023 13:54
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants

@st3iny@icewind1991@blizzz@github-advanced-security