It appears that the code in redmine related to copying a project to another project (with the intent of the source copy as a template) does not understand the nested category hierarchy and throws an error 500 when committing the copy. It only takes one category with a child to cause this to happen.
Here's a snip of the log file, and below that an environment description.
Completed 500 Internal Server Error in 179.6ms
ActiveRecord::ActiveRecordError (Unauthorized assignment to lft: it's an internal field handled by acts_as_nested_set code, use moveto* methods instead.):
lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:88:in lft=' app/models/project.rb:835:inblock in copy_issue_categories'
app/models/project.rb:833:in copy_issue_categories' app/models/project.rb:720:inblock (2 levels) in copy'
app/models/project.rb:719:in each' app/models/project.rb:719:inblock in copy'
app/models/project.rb:716:in copy' app/controllers/projects_controller.rb:122:inblock in copy'
app/models/mailer.rb:353:in with_deliveries' app/controllers/projects_controller.rb:119:incopy'
Here's the environment:
Environment:
Redmine version 2.4.2.stable.12475
Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter MySQL
SCM:
Subversion 1.6.17
Git 1.7.10.4
Filesystem
Redmine plugins:
clipboard_image_paste 1.8
redmine_category_tree 0.0.3
redmine_dashboard 2.1
redmine_favorite_projects 1.0.1
It appears that the code in redmine related to copying a project to another project (with the intent of the source copy as a template) does not understand the nested category hierarchy and throws an error 500 when committing the copy. It only takes one category with a child to cause this to happen.
Here's a snip of the log file, and below that an environment description.
Completed 500 Internal Server Error in 179.6ms
ActiveRecord::ActiveRecordError (Unauthorized assignment to lft: it's an internal field handled by acts_as_nested_set code, use moveto* methods instead.): lib/plugins/awesome_nested_set/lib/awesome_nested_set/awesome_nested_set.rb:88:in
lft=' app/models/project.rb:835:in
block in copy_issue_categories' app/models/project.rb:833:incopy_issue_categories' app/models/project.rb:720:in
block (2 levels) in copy' app/models/project.rb:719:ineach' app/models/project.rb:719:in
block in copy' app/models/project.rb:716:incopy' app/controllers/projects_controller.rb:122:in
block in copy' app/models/mailer.rb:353:inwith_deliveries' app/controllers/projects_controller.rb:119:in
copy'Here's the environment: Environment: Redmine version 2.4.2.stable.12475 Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux] Rails version 3.2.16 Environment production Database adapter MySQL SCM: Subversion 1.6.17 Git 1.7.10.4 Filesystem
Redmine plugins: clipboard_image_paste 1.8 redmine_category_tree 0.0.3 redmine_dashboard 2.1 redmine_favorite_projects 1.0.1