0

最近,我们的一位网站用户成功签出了一个大型 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

有没有其他人遇到过这个问题?

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

一个简单的解决方案是缩小 PDF 的大小,但用户坚持他们想要更大的版本(更高的打印分辨率)。

有人知道吗:

  1. 是否有解决此问题的方法?
  2. 可以签入的 BLOB 的最大大小是多少?

谢谢

托尼

4

1 回答 1

1

您可能想访问/portal_modifier/SkipVersioningOfLargeFilesAndImages/modifierEditForm您的站点,并启用此修饰符。这将为大于指定阈值的文件禁用已上传文件有效负载的版本控制,但为任何已编辑的元数据启用版本控制。

于 2013-06-27T15:53:01.047 回答