Ticket #1330 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

create CPS Flexible Type Information in portal_types fails

Reported by: anonymous Assigned to: div
Priority: P1 Milestone: CPS 3.4.0
Component: CPS (global) Version: 3.4.0
Severity: minor Keywords:
Cc:

Description

when trying to create a CPS Flexible Type Information in portal_types

Traceback (innermost last):
  Module ZPublisher.Publish, line 113, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Products.GenericSetup.browser.utils, line 39, in __call__
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 110, in _exec
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
   - <ImplicitAcquirerWrapper object at 0xb29585ec>
  Module TAL.TALInterpreter, line 238, in __call__
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 714, in do_condition
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - URL: index
   - Line 18, Column 1
   - Expression: standard:'view/getProfileInfos'
   - Names:
      {'container': <+ at /cps/portal_types/>,
       'context': <+ at /cps/portal_types/>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb719ef4c>,
       'here': <+ at /cps/portal_types/>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb27daaec>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb71476cc>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb27daaec>,
       'request': <HTTPRequest, URL=http://z29.aixtraware.de/cps/portal_types/%2B/addFlexibleTypeInformation.html>,
       'root': <Application at >,
       'template': <ImplicitAcquirerWrapper object at 0xb29585ec>,
       'traverse_subpath': [],
       'user': <CPSUser perry>,
       'view': <Products.Five.metaclass.SimpleViewClass from /ZP/i29/Products/GenericSetup/browser/addWithPresettings.pt object at 0xb282a74c>,
       'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0xb253ceec>}
  Module Products.PageTemplates.Expressions, line 185, in __call__
  Module Products.PageTemplates.Expressions, line 180, in _eval
  Module Products.PageTemplates.Expressions, line 85, in render
  Module Products.CMFCore.browser.typeinfo, line 51, in getProfileInfos
  Module xml.dom.minidom, line 1925, in parseString
  Module xml.dom.expatbuilder, line 942, in parseString
  Module xml.dom.expatbuilder, line 223, in parseString
ExpatError: not well-formed (invalid token): line 42, column 9

with the ZMI I get:

Change History

01/27/06 13:15:56 changed by sfermigier

  • owner changed from tziade to fguillaume.
  • component changed from CPSTypeMaker to CPS (global).

Not a CPSTypeMake bug, AFAICT.

01/27/06 18:30:22 changed by sfermigier

  • status changed from new to closed.
  • resolution set to invalid.

This was due to a local modification.

01/28/06 15:44:32 changed by jschmitz

  • status changed from closed to reopened.
  • resolution deleted.
  • severity changed from major to minor.

it was caused by a broken bakup-copy of an xml-file. I had edited this file to test what happens if I put it wrong xml-syntax. Then I changed it back. But my editor (jed) makes automatic backups by appending a tilde, and since in CMFCore/browser/typeinfo.py line 45 says:

file_ids = context.listDirectory('types')

So it tries to evaluate every file in the types directories. That should be made a little bit more robust.

02/01/06 12:29:39 changed by ebarroca

  • owner changed from fguillaume to div.
  • status changed from reopened to new.

02/08/06 13:15:08 changed by ebarroca

Div, What's the status here ?

02/08/06 13:18:09 changed by div

This is a CMFCore bug, not a CPS one

02/14/06 02:49:08 changed by ebarroca

Please monley patch it and put the patch in CPSCompat

02/14/06 17:46:47 changed by div

  • status changed from new to closed.
  • resolution set to fixed.

The real problem was that the creation of CPS Flexible Type Information in portal_types crashed if the javascript was disabled, or if the Add button is pushed. Either case, the problem occured when the form was not submited by JavaScript?.

Fixed now in [32828], [32829]