Project

General

Profile

Actions

Defect #13085

closed

Error when updating an issue

Added by David Ruty over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hello,

Before all, thanks for your good job, Redmine is just usefull and perfect for us.

When we're trying to update an issue with cUrl (or in Delphi), we have an HTTP 500 ERROR :

Processing IssuesController#update to xml (for 192.168.99.254 at 2013-02-05 14:51:49) [PUT]
  Parameters: {"id"=>"2158", "issue"=>{"subject"=>"KAKAROOT"}, "format"=>"xml", "action"=>"update", "controller"=>"issues"}

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

Rendering F:/REDMINE/apps/redmine/public/500.html (500 Internal Server Error)

We tried application/xml or text/xml, problem is the same

curl.exe -v -H "Content-Type: text/xml" -X PUT --data "@toto1.xml" -H "X-Redmine-API-Key:xxxxxxxxxx" http://xxxxxxxx/redmine/issues/2158.xml

File :

<issue>
  <subject>CASTOR_MAJOR</subject>
</issue>

Creating an issue works very well...

Thanks for your help,

Actions

Also available in: Atom PDF