Plone 4.0.7-签入大型PDF时的最大递归深度错误

Plone 4.0.7-签入大型PDF时的最大递归深度错误,plone,Plone,最近,我们的一位网站用户成功签出了一个大型PDF,并试图将其签回,但由于以下堆栈跟踪失败: 2013-02-21 12:42:39 ERROR Zope.SiteErrorLog 1361450559.20.0921547927966 http://phoebe:8095/portal/our-responsibilities/codes-of-conduct/copy_of_please-let-us- know-where-you-live/content_status_mo

最近,我们的一位网站用户成功签出了一个大型PDF,并试图将其签回,但由于以下堆栈跟踪失败:

2013-02-21 12:42:39 ERROR Zope.SiteErrorLog 1361450559.20.0921547927966    
http://phoebe:8095/portal/our-responsibilities/codes-of-conduct/copy_of_please-let-us-    
know-where-you-live/content_status_modify
Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 130, in __call__
  Module Shared.DC.Scripts.Bindings, line 324, in __call__
  Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 42, in content_status_modify
   - <FSControllerPythonScript at /portal/our-responsibilities/codes-of-conduct/please- 
let-us-know-where-you-live/content_status_modify>
   - Line 42
  Module Products.CMFCore.WorkflowTool, line 244, in doActionFor
  Module Products.CMFCore.WorkflowTool, line 555, in _invokeWithNotification
  Module Products.DCWorkflow.DCWorkflow, line 282, in doActionFor
  Module Products.DCWorkflow.DCWorkflow, line 421, in _changeStateOf
  Module Products.DCWorkflow.DCWorkflow, line 465, in _executeTransition
  Module zope.event, line 23, in notify
  Module zope.component.event, line 26, in dispatch
  Module zope.component._api, line 138, in subscribers
  Module zope.component.registry, line 323, in subscribers
  Module zope.interface.adapter, line 575, in subscribers
  Module zope.component.event, line 34, in objectEventNotify
  Module zope.component._api, line 138, in subscribers
  Module zope.component.registry, line 323, in subscribers
  Module zope.interface.adapter, line 575, in subscribers
  Module arcadia.app.events, line 22, in before_transition
  Module plone.app.iterate.browser.checkin, line 50, in __call__
  Module plone.app.iterate.policy, line 90, in checkin
  Module zope.event, line 23, in notify
  Module zope.component.event, line 26, in dispatch
  Module zope.component._api, line 138, in subscribers
  Module zope.component.registry, line 323, in subscribers
  Module zope.interface.adapter, line 575, in subscribers
  Module plone.app.iterate.subscribers.versioning, line 36, in handleAfterCheckin
  Module plone.app.iterate.archiver, line 43, in save
  Module Products.CMFEditions.CopyModifyMergeRepositoryTool, line 297, in save
  Module Products.CMFEditions.CopyModifyMergeRepositoryTool, line 443, in 
_recursiveSave
  Module Products.CMFEditions.ArchivistTool, line 267, in prepare
  Module Products.CMFEditions.ArchivistTool, line 221, in _cloneByPickle
  Module ZODB.Connection, line 843, in setstate
  Module logging, line 1047, in error
  Module logging, line 1128, in _log
  Module logging, line 1108, in makeRecord
  Module logging, line 243, in __init__
RuntimeError: maximum recursion depth exceeded while calling a Python object
2013-02-21 12:42:39错误Zope.SiteErrorLog 1361450559.20.092154797966
http://phoebe:8095/portal/our-责任/行为准则/请让我们-的副本
了解您的居住地/内容\u状态\u修改
回溯(最里面的最后一个):
发布中模块ZPublisher.Publish,第127行
模块ZPublisher.mapply,第77行,在mapply中
模块ZPublisher.Publish,第47行,在call_对象中
模块Products.CMFFormController.FSControllerPythonScript,第105行,在调用中__
模块Products.CMFFormController.Script,第145行,在调用中__
模块Products.CMFCore.FSPythonScript,第130行,in__调用__
模块Shared.DC.Scripts.Bindings,第324行,在调用中__
模块Shared.DC.Scripts.Bindings,第361行,在_bindAndExec中
模块产品.PythonScripts.PythonScript,第344行,in_exec
模块脚本,第42行,内容\状态\修改
- 
-第42行
模块产品.CMFCore.WorkflowTool,第244行,在doActionFor中
模块Products.CMFCore.WorkflowTool,第555行,在调用通知中
doActionFor中的模块Products.DCWorkflow.DCWorkflow,第282行
模块Products.DCWorkflow.DCWorkflow,第421行,位于
模块Products.DCWorkflow.DCWorkflow,第465行,在执行转换中
模块zope.event,第23行,在notify中
模块zope.component.event,第26行,调度中
订阅服务器中的模块zope.component.\u api,第138行
订阅服务器中的模块zope.component.registry,第323行
订阅服务器中的模块zope.interface.adapter,第575行
objectEventNotify中第34行的模块zope.component.event
订阅服务器中的模块zope.component.\u api,第138行
订阅服务器中的模块zope.component.registry,第323行
订阅服务器中的模块zope.interface.adapter,第575行
模块arcadia.app.events,第22行,在转换之前
模块plone.app.iterate.browser.checkin,第50行,输入调用__
签入模块plone.app.iterate.policy第90行
模块zope.event,第23行,在notify中
模块zope.component.event,第26行,调度中
订阅服务器中的模块zope.component.\u api,第138行
订阅服务器中的模块zope.component.registry,第323行
订阅服务器中的模块zope.interface.adapter,第575行
handleAfterCheckin中第36行的模块plone.app.iterate.subscribers.versioning
模块plone.app.iterate.archiver,第43行,保存
模块Products.CMFEditions.CopyModifyMergeRepositoryTool,第297行,保存
模块Products.CMFEditions.CopyModifyMergeRepositoryTool,第443行,输入
_递归保存
模块产品.CMF条件.ArchivistTool,第267行,准备中
模块产品.CMF条件.ArchivistTool,第221行,inu cloneByPickle
模块ZODB.连接,第843行,处于设置状态
模块日志记录,第1047行出错
模块日志,第1128行,在日志中
makeRecord中的模块日志记录,第1108行
模块日志记录,第243行,在初始化中__
RuntimeError:调用Python对象时超出了最大递归深度
还有其他人经历过这个问题吗

问题中的PDF大小为24MB,签入缩小到9MB的PDF不会导致问题

一个简单的解决方案是减小PDF的大小,但用户习惯于使用更大的版本(更高的打印分辨率)

有谁知道:

  • 该问题是否有解决方案
  • 可以签入的BLOB的最大大小是多少 谢谢


    Tony

    您可能希望访问站点中的
    /portal\u modifier/skipversioningorangefilesandimages/modifierEditForm
    ,并启用此修改器。这将对大于指定阈值的文件禁用上载文件负载的版本控制,但对任何编辑的元数据启用版本控制。

    提交错误报告。这类问题不太可能在StackOverflow上解决。或者重新打开--这是一个长期存在的CMF条件问题,充其量只能解决(IIRC,请参阅我的答案)。感谢您的建议,但是,该修改器似乎已在网站上启用-它仍在
    portal\u修改器
    页面的列表中。没有启用它的选项,只有导入/导出、移动、删除等。当我从
    portal\u修饰符
    页面单击
    skipVersioningorangefilesandimages
    链接时,我会看到一个页面,该页面只显示:主导航工具导航站点页脚,没有启用修饰符的选项