#186 — Adding Story in closed Project gives CopyError

by Maurits van Rees last modified Apr 28, 2010 10:31 PM
State Resolved
Version: 2.1
Area Functionality
Issue type Bug
Severity Medium
Submitted by Maurits van Rees
Submitted on Jul 02, 2009
Responsible Maurits van Rees
Target release:
Subject says it all. Traceback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Products.CMFPlone.FactoryTool, line 376, in __call__
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 90, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in _call
  Module Products.CMFFormController.ControllerBase, line 231, in getNext
  Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 140, in __call__
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 196, in _exec
  Module None, line 1, in content_edit
   - <FSControllerPythonScript at /.../portal_factory/Story/story.2009-07-02.0340349431>
   - Line 1
  Module Products.CMFCore.FSPythonScript, line 140, in __call__
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 196, in _exec
  Module None, line 13, in content_edit_impl
   - <FSPythonScript at /.../portal_factory/Story/story.2009-07-02.0340349431>
   - Line 13
  Module Products.Archetypes.BaseObject, line 664, in processForm
  Module Products.Archetypes.BaseObject, line 773, in _renameAfterCreation
  Module Products.Archetypes.BaseObject, line 216, in setId
  Module Products.Archetypes.OrderedBaseFolder, line 205, in manage_renameObject
  Module OFS.CopySupport, line 344, in manage_renameObject
Copy Error:

So something needs to be changed in the workflow. Easiest seems to be to make sure Employees/Managers still have the CopyOrMove permission when a Project is closed.
Steps to reproduce:
- Add a Project.
- Add an Iteration.
- Close the Project.
- Add a Story to the Iteration. Saving the form gives a CopyError.
Added by Maurits van Rees on Apr 28, 2010 10:31 PM
Issue state: UnconfirmedResolved
Responsible manager: (UNASSIGNED)maurits
Giving Employees the 'Copy or Move' permission also on closed Projects helps a bit. But then you still get a surprisingly uninformative Unauthorized error. At least this is better than the current situation: the immediate error is fixed, which is enough for now. Done in r116374.

No responses can be added.