Defect #9860
closedUnable to use reposman.rb (XML received instead of JSON)
0%
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
Updated by Etienne Massip over 13 years ago
- Status changed from New to Closed
- Resolution set to Invalid
The SysController
is not part of the Projects REST API but only for use by Reposman; if you need to get projects manually in json format for a different use, go with the API.
By the way, the error you get must be due to the use of Rails 3 with Redmine 1.2 which doesn't support it (see RedmineInstall) and to a probable move of the format used by default by ActiveResource.
Lastly, it has already be fixed in trunk with r7955.