Project

General

Profile

Actions

Defect #4745

closed

Bug in index.xml.builder (issues)

Added by Yohann Monnier about 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
REST API
Target version:
Start date:
2010-02-05
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

in this file at :

xml.issues :type => 'array' , :count => @issue_count do

The ":count" parameter will cause an error calling issues from activeresource :

can't typecast "1" 
 ["/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb:182:in `typecast_xml_value'", "/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb:208:in `typecast_xml_value'", "/var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/hash/conversions.rb:199:in `inject'",

If you delete this parameter, all is working fine.

My configuration

Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /var/www/redmine
Environment development
Database adapter postgresql
Database schema version 20091227112908


Related issues

Related to Redmine - Feature #6140: REST issues response with issue count limit and offsetClosed2010-08-13

Actions
Has duplicate Redmine - Defect #5226: 'can't typecast' in REST API for issuesClosed2010-03-31

Actions
Actions

Also available in: Atom PDF