https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292022-09-09T00:07:24ZRedmineRedmine - Defect #37633: API create issue relation method returns "406:Not Acceptable" errorhttps://www.redmine.org/issues/37633?journal_id=1078272022-09-09T00:07:24ZMizuki ISHIKAWA
<ul></ul><p>Thank you for writing a clear reproduction method.<br />However, I could not reproduce the issue in my environment (Redmine 4.2.5, Ruby 2.7.5)</p>
<pre>
$ curl -v -H "Content-Type: application/json" -X POST --data-binary "@rel.json" -H "X-Redmine-API-Key: xxx" http://localhost:3000/issues/1/relations.json
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 127.0.0.1:3000...
* Connected to localhost (127.0.0.1) port 3000 (#0)
> POST /issues/1/relations.json HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/7.79.1
> Accept: */*
> Content-Type: application/json
> X-Redmine-API-Key: xxx
> Content-Length: 125
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 201 Created
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Download-Options: noopen
< X-Permitted-Cross-Domain-Policies: none
< Referrer-Policy: strict-origin-when-cross-origin
< Content-Type: application/json; charset=utf-8
< Location: http://localhost:3000/relations/1
< ETag: W/"0036f8661ce63c9249d262c9dd7a2c2d"
< Cache-Control: max-age=0, private, must-revalidate
< X-Request-Id: 4e9cc4fb-7564-453a-a0be-88fb46f86472
< X-Runtime: 0.060981
< Content-Length: 87
<
* Connection #0 to host localhost left intact
{"relation":{"id":1,"issue_id":2,"issue_to_id":1,"relation_type":"precedes","delay":0}}%
</pre> Redmine - Defect #37633: API create issue relation method returns "406:Not Acceptable" errorhttps://www.redmine.org/issues/37633?journal_id=1078282022-09-09T00:14:34ZMizuki ISHIKAWA
<ul></ul><p>Could you please try to reproduce the problem with a newly built Redmine with Docker as follows.<br />This is a verification to isolate whether the problem is client side or affected by Redmine configuration, etc.</p>
<pre>
docker run -p 3000:3000 --name redmine redmine:4.2.5
</pre>
<ul>
<li>Access to <a class="external" href="http://localhost:3000">http://localhost:3000</a></li>
<li>Create a project and issues, etc. (Create the data needed to set up issue relationships)</li>
<li>Make the API available and create an API key</li>
<li>Create issue relation by curl command</li>
</ul> Redmine - Defect #37633: API create issue relation method returns "406:Not Acceptable" errorhttps://www.redmine.org/issues/37633?journal_id=1081062022-10-01T03:09:50ZTomoko Shimizu
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>Thank you, Mizuki Ishikawa -san.</p>
<p>We had applied a few patch to Redmine, and when we applied the same patch to 4.2.5, it was causing the bug.<br />Sorry for raising a Defect ticket here. Please close or delete the ticket.</p> Redmine - Defect #37633: API create issue relation method returns "406:Not Acceptable" errorhttps://www.redmine.org/issues/37633?journal_id=1081152022-10-01T14:06:47ZMischa The Evil
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Cant reproduce</i></li></ul><p>Thanks for the feedback.</p>