Defect #35039

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

Added by Marius BALTEANU over 1 year ago. Updated over 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:


Category:REST API
Target version:4.2.1
Resolution:Fixed Affected version:4.2.0


Extracted from #33418#note-20:

hi everyone! I am the owner of redmine-java-api project (
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.

0001-Fix-undefined-method-split-when-issue-to-id-is-numer.patch Magnifier (2.99 KB) Marius BALTEANU, 2021-04-07 08:06

Related issues

Related to Redmine - Feature #33418: Bulk addition of related issues Closed

Associated revisions

Revision 20932
Added by Go MAEDA over 1 year ago

Fix undefined method 'split' when issue_to_id is numeric (#35039).

Patch by Marius BALTEANU.

Revision 20935
Added by Go MAEDA over 1 year ago

Merged r20932 from trunk to 4.2-stable (#35039).


#1 Updated by Marius BALTEANU over 1 year ago

#2 Updated by Marius BALTEANU over 1 year ago

Here is a fix for this with test included. The patch also improve an existing test.

All tests passs:

#3 Updated by Alex Last over 1 year ago

hi Marius! would you also be interested in redmine-java-api library maintenance? feel free to submit PRs at when Redmine REST API changes.

#4 Updated by Guillermo ML over 1 year ago

I had the same error using python-redmine trying to relate two issues in a Bitnami VM with Redmine 4.2.0.
After applying Marius' patch and restarting the VM the error disappears and the relation is created.

Thank you!

#5 Updated by Go MAEDA over 1 year ago

  • Status changed from Confirmed to Resolved
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix. Thank you.

#6 Updated by Go MAEDA over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF