Skip to content

Conversation

@iRohitSingh
Copy link
Member

@iRohitSingh iRohitSingh requested a review from a team as a code owner January 20, 2026 15:22
@iRohitSingh
Copy link
Member Author

@davisagli I have exported the content. But when I am deleting and recreating the example content. I am getting this error

-supported format.
ERROR:plone.exportimport:- /personen/florian-meier: Error deserializing <Person at florian-meier>
Traceback (most recent call last):
  File "/Users/rohitkumar/Documents/project/kitconcept.intranet/backend/.venv/lib/python3.12/site-packages/plone/exportimport/importers/content.py", line 69, in deserialize
    obj = deserializer(**kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/rohitkumar/Documents/project/kitconcept.intranet/backend/.venv/lib/python3.12/site-packages/plone/restapi/deserializer/dxcontent.py", line 63, in __call__
    raise BadRequest(errors)
zExceptions.BadRequest: [{'message': 'Constraint not satisfied', 'field': 'username', 'error': 'ValidationError'}]
WARNING:plone.namedfile.utils:PIL can not recognize the image. Image is probably broken or of a non-supported format.
WARNING:plone.namedfile.utils:PIL can not recognize the image. Image is probably broken or of a non-supported format.

@iFlameing
Copy link
Member

@davisagli I debug this and my hunch is user is not created first. We need to have user before we can assign to any person.

https://github.com/collective/collective.person/blob/main/src/collective/person/behaviors/user.py#L19C5-L19C22

validation code.

we already have a principals.json file and in import steps it should run first before any content import.

@davisagli
Copy link
Member

@iFlameing Yes, you're right.

This was a bug in plone.exportimport. It was fixed in plone/plone.exportimport#80 and released in plone.exportimport 1.3.1, which is included in Plone 6.1.4. So we have to:

  • upgrade kitconcept-core to Plone 6.1.4
  • release kitconcept-core
  • update kitconcept.intranet to use the new release of kitconcept-core
  • merge main into this branch

/cc @ericof @sneridagh

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.

4 participants