plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
254 stars 191 forks source link

Export of registry.xml via portal_setup failed under Plone 5.2 Py3 #2782

Closed 1letter closed 5 years ago

1letter commented 5 years ago

BUG/PROBLEM REPORT

What I did:

What I expect to happen:

What actually happened:

Traceback:

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 128, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 276, in publish_module
  Module ZPublisher.WSGIPublisher, line 210, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module Products.PDBDebugMode.wsgi_runcall, line 60, in pdb_runcall
  Module Products.GenericSetup.tool, line 646, in manage_exportSelectedSteps
  Module Products.GenericSetup.tool, line 1298, in _doRunExportSteps
  Module plone.app.registry.exportimport.handler, line 94, in exportRegistry
  Module Products.GenericSetup.context, line 442, in writeDataFile
ValueError: Unicode text is not supported, even if it only contains ascii. Please encode your data. See GS 1.7.0 changes for more

But when i go to Plone Site -> portal_registry -> export and click the button 'Export Now', all is fine. i get a downloadfile registry.xml

What version of Plone/ Addons I am using:

It did not happen with the same procedure on Py2 Version of Plone 5.2

gforcada commented 5 years ago

Fixed with https://github.com/plone/plone.app.registry/pull/35 right?