Skip to content
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

Portlet importexport throws Exception when a Choice field is empty #131

Open
nngu6036 opened this issue Aug 14, 2019 · 0 comments
Open

Portlet importexport throws Exception when a Choice field is empty #131

nngu6036 opened this issue Aug 14, 2019 · 0 comments

Comments

@nngu6036
Copy link

nngu6036 commented Aug 14, 2019

Steps to reproduce:

  • Create a new Plone Site
  • Go to ZMI -> portal_setup
  • Export the potlet to a tar ball
  • Import the same tar ball

The system throws exception,

ConstraintNotSatisfied: (u'', 'root_uid')

I put the debug and found that it breaks to the assignment for navigation portlet. Somehow the Choice field is empty and is exported as an XML element with no value, but the import process does not accept it.

I have a work around by removing the XML element manually from portlets.xml.

@instification instification changed the title Porlet importexport throws Exception when a Choice field is empty Portlet importexport throws Exception when a Choice field is empty Aug 16, 2019
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

No branches or pull requests

1 participant