Project

General

Profile

Actions

Defect #35039

closed

API create issue relation method returns undefined method `split' when issue id is sent as integer

Added by Marius BĂLTEANU over 3 years ago. Updated over 3 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Extracted from #33418#note-20:

hi everyone! I am the owner of redmine-java-api project (https://github.com/taskadapter/redmine-java-api).
I get a server error with Redmine 4.2.0 when trying to create a relation with the request body that previously worked for Redmine 3.x:

{"relation"=>{"issue_to_id"=>576, "relation_type"=>"relates"}, "issue_id"=>"575"}

> 

the error is:

NoMethodError (undefined method `split' for 576:Integer):

> 

because issue_to_id is now expected to be a string with commas, instead of a number.

is this a permanent change or just an experiment? it would be too expensive to maintain compatibility for multiple redmine versions in the java library.


Files


Related issues

Related to Redmine - Feature #33418: Bulk addition of related issuesClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF