plone - CopyError - OFS.CopySupport.manage_pasteObjects limited to ~ <160 objects? -


i'm using view archive old content moving folder. (catalog search enddate more n months ago, pass id's following command:

target.manage_pasteobjects( source.manage_cutobjects(idstoarchive) )

one or 2 years ago moving 800 or more objects no problem. today need limit catalog search around 80 items. otherwhise

  module ofs.copysupport, line 193, in manage_pasteobjects   copyerror:     data in clipboard not read, possibly due cookie data being truncated web browser. try copying fewer objects. 

running plone 4.1.6 / zope2-2.13.15 tried deactivate beaker-session-datamanager (still same problems)

any pointers appreciated

you installed latest plone hotfix, 20130618. includes ddos-prevention measure limiting size of __cp cookie data 8kb (decompressed).

future zope versions include fix.

to work around temporarily option increase maximum size default. doing will allow other threads use larger cookies until restore default:

from ofs.copysupport import _cb_decode  _default_maxsize = _cb_decode.func_defaults[0]  _increase_maxsize(newsize):     # patch maxsize default     _cb_decode.func_defaults = (newsize,)  _restore_maxsize(newsize):     # patch maxsize default     _cb_decode.func_defaults = (_default_maxsize,) 

the cookie data consists entirely of object paths (absolute paths tuples) marshall dumps, you'll have estimate suitable maximum size that.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -