Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error updating parent issue only, without importing childs #29

Open
sbriand opened this issue Nov 4, 2014 · 0 comments
Open

Error updating parent issue only, without importing childs #29

sbriand opened this issue Nov 4, 2014 · 0 comments

Comments

@sbriand
Copy link

sbriand commented Nov 4, 2014

Environment:

  • Redmine version 2.3.3.stable
  • Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux]
  • Rails version 3.2.13
  • Environment production
  • Database adapter Mysql2
    Redmine plugins:
  • redmine_better_gantt_chart 0.9.0
  • redmine_gsc_plantillas 0.1.0
  • redmine_importer 1.2.2
  • redmine_issue_templates 0.0.8
  • redmine_wiki_extensions 0.6.5
  • redmine_wiki_lists 0.0.4
  • sidebar_hide 0.0.5
  • traceability_matrix 0.2.3
  • wiki_issue_fields 0.4.3

Context :

  • I am trying to import a list of issues in order to update them.
  • This issues already exist in database, and some of them have children
  • The tracker type of parent issues is different of the tracker type of children issues (lets say parents issues are "feature" and children are "defect")
    • I am only importing (thus updating) the parents. Not the childern

Behavior :

  • Issues that have no children are properly imported, and updated.
  • When the first issue that have a children is meet, it causes a failure that stops the importing process.

Result and Logs :

  • The result web page shows an "Internal Error" message
  • The log file shows :

Completed 500 Internal Server Error in 568ms

NoMethodError (undefined method >' for nil:NilClass): app/models/issue.rb:159:increate_or_update'

  • With my debbuging environment, I found that the failure appear in file importer_controller.rb
    ligne 489 "unless issue.save"

Question is :

  • is it a mis-use or mis-understanding of myself ?
  • does your plugin need an update ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant