Project

General

Profile

Actions

Defect #9860

closed

Unable to use reposman.rb (XML received instead of JSON)

Added by Ganael Laplanche over 13 years ago. Updated over 13 years ago.

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

patch-reposman.rb.txt (341 Bytes) patch-reposman.rb.txt Reposman patch to make it accept XML Ganael Laplanche, 2011-12-22 14:04
Actions #1

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.

Actions #2

Updated by Ganael Laplanche over 13 years ago

Thanks you for your answer !

Actions

Also available in: Atom PDF