-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
folder_contents
breaks if a catalog column name matches any blob fields
#4078
Comments
It's unusual to store a NamedBlobImage in catalog metadata. I wouldn't be surprised if it causes problems in other places too. Do you need to do it? |
@davisagli I totally agree. I found this situation during a migration from plone43 Archetypes to plone5 Dexterity. I was wondering whether there should be some sort of "do not add metadata names that references blob fields" disclaimer in the zcatalog (generally Plone) documentation. |
There is a relevant open issue plone/documentation#1730 that needs many subject matter experts to take just one tiny, wafer-thin, after-dinner mint bite of it. Currently there is nothing useful in about zcatalog Plone 6 Documentation. 😢 |
In addition to this, I will suggest adding a check in the form to include a |
BUG/PROBLEM REPORT
folder_contents
view breaks if a there is a catalog column (metadata) that matches any blob fields name and that folder contains items with that blob field populated.What I did:
Add a portal_catalog metadata column named as any blob field (for example
image
)Add an Image content in a folder (populate it with an actual file)
Try to access to folder_contents view
What I expect to happen:
See folder contents items
What actually happened:
The view stucks in loading mode.
The backend raises an error:
Attributes list required by the pattern are filled with all catalog metadata columns
Python repr of the an item is something like
image
value is not json serializableWhat version of Plone I am using:
Plone 5.x, 6.x Classic
The text was updated successfully, but these errors were encountered: