[Zope-dev] import of zexp containing Page Template objects causes sudden zope death

Tres Seaver tseaver at palladion.com
Fri Aug 27 11:52:43 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Withers wrote:
> Hi All,
> 
> So, here the story; I have a zodb that's been around for many years.
> In it, it has a folder containing a few ZPTs and python scripts.
> 
> This server is now running Zope 2.12.
> 
> If I zexp export that folder and import into a clean 2.12 instance, the 
> import works fine, but when I try to go to the folder in the ZMI, Zope 
> dies immediately. No messages, no errors, no output.
> 
> If I delete the ZPTs before the export and import, everything is okay.
> 
> I can browse the folder and ZPTs fine on the originating server, even 
> after the 2.12 upgrade.
> 
> I'm left with a vague "wtf?!" feeling.
> Does anyone have any clue what the problem might be or how I can get any 
> kind of output or error message when it does happen?

Binary search is your friend:

- - Is it only one of the ZPTs which cause the crash?

- - Can you trim out parts of its content and make it not crash?

- - etc.

Also, you might try exporting to XML and looking at the XML file for
oddities (mojibake, etc.)

You might try to open the imported folder under 'zopectl debug' and see
if you can examine the contents of the ZPTs.  If that works, then the
issue must be in how 'manage_main' is trying to render the links /
titles of the templates.



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkx330cACgkQ+gerLs4ltQ7tIgCfdQRrfof/plQCLV3eSjj2HnTf
VaAAn2JcARDIeqOJBG0TY/1sIEfppMBF
=knjo
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list