Defect #15233
closed500 in POST to /Users.xml
0%
Description
In an attempt to integrate redmine more tightly with my own applications, I'm trying to create users through the API.
I managed to get authenticated and get a list of current users, but on posting to /Users.xml, I get a 500.
I posted the example xml from here: http://www.redmine.org/projects/redmine/wiki/Rest_Users#POST.
This might be a bug, but since I'm getting this on my current install, which is 2.0.1, as well as a fresh install in the bitnami cloud, which is 2.3.3, it's also possible I'm just doing something stupid.
I attached the request and the response.
Also, here's the version info from the two installations I tested with the same result:
Bitnami cloud machine:
Environment:
Redmine version 2.3.3.stable
Ruby version 1.9.3-p448 (2013-06-27) [x86_64-linux]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed
My production system:
Environment:
Redmine version 2.0.1.stable
Ruby version 1.9.3 (i386-mingw32)
Rails version 3.2.3
Environment production
Database adapter SQLite
Redmine plugins:
no plugin installed
Files
Updated by Etienne Massip about 11 years ago
Please have a look in production.log
file, you should find the error stack trace in it.
Updated by Etienne Massip about 11 years ago
- Status changed from New to Needs feedback
- Assignee set to Jens Theisen
Updated by Jens Theisen about 11 years ago
I attached the relevant bit as an image.
Sorry that it's an image, but I just set up a virtual machine for it and that was the simplest way to get at it.
This is again from a 2.3.3:
Environment:
Redmine version 2.3.3.stable
Ruby version 1.9.3-p448 (2013-06-27) [x86_64-linux]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed
Updated by Jean-Philippe Lang about 11 years ago
- Status changed from Needs feedback to Closed
- Resolution set to Invalid
Have a look at Rest_api.
You have to set the content-type header in your request: Content-Type: application/xml
Updated by Jens Theisen about 11 years ago
It's working now, thank's for your time.