Actions
Defect #9860
closedUnable to use reposman.rb (XML received instead of JSON)
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
Hello,
I am getting this error when trying to use reposman.rb :
'
If I try to get data manually from the following URL (used by the script) :
https://my.redmine.site/sys/projects.json?key=XXX
It retrieves XML instead of JSON data.
The attached patch fixes the situation and is provided as an illustration (only, not as a proper fix as it forces reposman.rb to accept XML).
FYI, Redmine is installed on a FreeBSD 8.1-RELEASE machine (amd64) and we use the following software versions :
- redmine 1.2.1
- ruby18-gems-1.7.2
- rubygem-activemodel-3.1.3
- rubygem-activeresource-3.1.3
- rubygem-activesupport-3.1.3
Files
Actions