Skip to content

Conversation

@jnptk
Copy link
Contributor

@jnptk jnptk commented Sep 30, 2025

Fixes data extraction from Pdata objects by traversing the entire linked list and concatenating all chunks, rather than only reading the first node's data.

@jnptk jnptk requested review from jackahl, pbauer and tisto September 30, 2025 13:27
Copy link
Member

@jackahl jackahl left a comment

Choose a reason for hiding this comment

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

Tested it locally and seems to work fine for both cases with and without the Pdata wrapper

-----------------

- Nothing changed yet.
- Fixed data extraction to concatenate all `Pdata` chunks. [@jnptk]
Copy link
Member

Choose a reason for hiding this comment

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

To be more precise, the fix in the Serializer is only for ATFileFields from the Archetypes contenttype system, where the binary Data of the FileField is stored in the ZODB instead of Blobstorage (using plone.app.blob). Most Plone sites with Archetypes would/should have been migrated or on install already use Blob based filefield storage in Plone 4.

A mnore precies changelog line could be along the lines of:

  • Fixed data extraction of Archetypes ATFilefields to concatenate all 'Pdata' chunks, when the FileField data was still stored in Filestorage and not not migrated to use blobstorage (using plone.app.blobs).

@pbauer pbauer merged commit c04ab6f into main Oct 10, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants