Hi, just investigating problems with copy/cut & paste functionality and I think it is due to browser cookie restrictions ... I've read that the maximum size for cookies in most browser is 4092 bytes per cookie (some browsers even 4092 bytes per domain).
Now if you want to copy 20 items and the IDs of them are (do not ask why) insanely long, setting the
__cp cookie in
plone.app.content.browser.contents.copy does not work anymore ... it fails silently and doesn't set any cookie. So if you want to paste the copied items somewhere, the actionbutton in structure pattern simply ignores your click, because it checks the existance of
And it can get even worse as in our case: If your customer successfully moved an item from one place to another, the
__cp cookie of that action doesn't get removed on success. Now if he afterwards wants to move or copy "too much items" somewhere else he doesn't notices that it didn't work because the action silently fails. BUT if he now clicks the paste action in the target context, it reads your old cookie contents and fails, because the item isn't there anymore ... whoooha ...
Has anybody an idea how to make these actions work with a cut/copy clipboard data bigger than 4092 bytes?