Skip to content

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

@nngu6036

Description

@nngu6036

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions