Project

General

Profile

Actions

Defect #19276

closed

Creating new issues with invalid project_id should return 422 instead of 403 error

Added by hironemu @ over 9 years ago. Updated over 9 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Hi,

The following REST request worked fine in Redmine 2.6.0:

$ curl -v -H "Content-Type: application/xml" -X POST --data "@test.xml"  -u test:testpass https://example.com/issues.xml

test.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<issue>
  <subject>test</subject>
  <project_id>test_project</project_id>
  <tracker_id>6</tracker_id>
  <description>test</description>
</issue>

Since upgrading to Redmine 3.0.0 the server responds with a HTTP 403 Forbidden.
I don't change user's role or other permissions.


Related issues

Related to Redmine - Feature #1003: Allow "New Issue" from anywhereClosed2008-04-05

Actions
Related to Redmine - Defect #23766: API : creating issues with project identifier no longer possibleClosedJean-Philippe Lang

Actions
Has duplicate Redmine - Defect #20119: REST API: setting project_id in issue not accepted in Redmine 3.0.3Closed

Actions
Actions

Also available in: Atom PDF