Skip to content

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Aug 3, 2023

Summary

OC\Files\Cache\Cache::get can return string|false|null, not just string|false.

Since null is just as much of an indicator that something is wrong with the specified cache source storage path, handle it same way as false.

TODO

  • ...

Checklist

OC\Files\Cache\Cache::get can return string|false|null, not just string|false.

- nextcloud#26270 added handling of false, but null is needed too.
- Well, or we change the default $resullt to false, but I'm not sure if that has other ramifications and the real need here is to simply catch situations where the cache source storage path is not valid for whatever reason

Related: nextcloud#19009

Signed-off-by: Josh Richards <[email protected]>
@solracsf solracsf added the 3. to review Waiting for reviews label Aug 4, 2023
@solracsf solracsf added this to the Nextcloud 28 milestone Aug 4, 2023
Copy link
Member

@solracsf solracsf left a comment

Choose a reason for hiding this comment

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

Appart my comment above, makes sense.

@solracsf
Copy link
Member

solracsf commented Aug 4, 2023

/backport to stable27

@solracsf
Copy link
Member

solracsf commented Aug 4, 2023

/backport to stable26

@solracsf
Copy link
Member

solracsf commented Aug 4, 2023

/backport to stable25

@solracsf solracsf requested a review from skjnldsv August 4, 2023 09:11
Co-authored-by: Git'Fellow <[email protected]>
Signed-off-by: John Molakvoæ <[email protected]>
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Aug 5, 2023
@skjnldsv skjnldsv merged commit b27a2e9 into nextcloud:master Aug 5, 2023
@solracsf
Copy link
Member

solracsf commented Aug 5, 2023

/backport to stable26

@solracsf
Copy link
Member

solracsf commented Aug 6, 2023

/backport to stable25

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

Labels

4. to release Ready to be released and/or waiting for tests to finish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants