TeamRocketScience / redmine_spent_time_required

Plugin to require adding spent time
http://trs.io
10 stars 11 forks source link

plugin breaks update in java redmine api #2

Open islord opened 12 years ago

islord commented 12 years ago

Hi,

I've setup a fresh installation of Redmine and installed this plugin. Without the plugin executing an "update" on an issue (e.g. subject change) works as expected. Adding the plugin breaks it. Do you have any ideas what could be the issue?

Thanks...

maxprokopiev commented 12 years ago

In what way does it breaks? Any error messages? Did you set up issue status ids in plugin settings?

islord commented 12 years ago

Actually, there's no error, but the issue is not getting updated. The redmine java api unit test fails. I tried by leaving it at "3 5" as it comes after installation and also I tried deleting that out, so there was nothing. In both cases the issue is not getting updated. After I remove the plugin and restart Redmine I can update normally again (unit test succeeds).

islord commented 12 years ago

Here is the difference running the same unit test with and without the plugin as seen in Redmine production.log log, respectively:

FAIL:

Processing IssuesController#update to xml (for 192.168.131.65 at 2011-10-24 12:53:04) [PUT] Parameters: {"format"=>"xml", "action"=>"update", "id"=>"79", "issue"=>{"start_date"=>"null", "done_ratio"=>"0", "subject"=>"changed subject", "tracker_id"=>"1", "description"=>"new desc", "status_id"=>"1"}, "controller"=>"issues"}

NoMethodError (undefined method []' for nil:NilClass): config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:indispatch_cgi'

Rendering C:/Apps/BitNami Redmine Stack/apps/redmine/public/500.html (500 Internal Server Error)


SUCCESS:

Processing IssuesController#update to xml (for 192.168.131.65 at 2011-10-24 12:57:32) [PUT] Parameters: {"format"=>"xml", "action"=>"update", "id"=>"80", "issue"=>{"start_date"=>"null", "done_ratio"=>"0", "subject"=>"changed subject", "tracker_id"=>"1", "description"=>"new desc", "status_id"=>"1"}, "controller"=>"issues"} Sending email notification to: Completed in 361ms (View: 0, DB: 40) | 200 OK [http://192.168.131.65/redmine/issues/80.xml?]

maxprokopiev commented 12 years ago

What is "redmine java api" anyway? May be plugin and this api conflict with each other

islord commented 12 years ago

It's an API for Java to perform CRUD operations from custom Java applications to Redmine.

http://code.google.com/p/redmine-java-api/

maxprokopiev commented 12 years ago

Tests fail because of this line

And there is no time entry in parameters. I'll fix it soon.

islord commented 12 years ago

Thank you for being so responsive.

Cheers