Skip to content

Fix missing collection type in paginated requests #53725

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

salmart-dev
Copy link
Contributor

Summary

json_encode and json_decode are used to store and retrieve entries to/from the cache. This gets rid of any class that is not JsonSerializable. This PR uses serialize/unserialize to avoid this issue.

NOTE: other properties could suffer from the same issue in the future. It may be worth making a list of properties that may appear and add them all in this PR to avoid this.

TODO

  • Do we need more properties to be retained?

Checklist

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@salmart-dev salmart-dev force-pushed the fix/53674-webdav-paginate-missing-collection-type branch from c4da152 to 55bc091 Compare June 30, 2025 11:54
@salmart-dev salmart-dev self-assigned this Jun 30, 2025
@salmart-dev salmart-dev marked this pull request as ready for review June 30, 2025 16:55
@salmart-dev salmart-dev requested a review from a team as a code owner June 30, 2025 16:55
@salmart-dev salmart-dev requested review from icewind1991, Altahrim and come-nc and removed request for a team June 30, 2025 16:55
Copy link
Member

@icewind1991 icewind1991 left a comment

Choose a reason for hiding this comment

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

using serialize/deserialize is a bad idea for a number of reasons.

It would be much better to just ensure that all properties are json-serializable

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

Successfully merging this pull request may close these issues.

[Bug]: DAV missing collection type in paginated PROPFIND requests
2 participants