Project

General

Profile

Actions

Defect #13267

open

No error message for invalid field values

Added by Phillip Wieser over 13 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
REST API
Target version:
-
Resolution:
Affected version:

Description

Technology stack:
(Bitnami with Redmine 2.2.3-0-ubuntu-12.04 in VMWare Player)

Environment:
Redmine version 2.2.3.stable
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.12
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed

Using REST API (XML) with curl

Description:
When sending invalid data, there is no indication of an error message for the following fields. No entry in the issue history is made and the application continues to work as expected.

1) project_id
2) tracker_id
3) priority_id

The following error cases were observed:

  • Unknown project IDs don't trigger error messages. Example: "5", where no project with ID 5 exists
  • Invalid integer does not trigger error message. Example: "gg"
  • Accepts value "1a" and parses it to 1
  • Empty values (for example, "<tracker_id></tracker_id>" do not trigger error message)

Expected result:
Error message, e.g. "unparsable entity"


Related issues

Related to Redmine - Defect #44721: Creating an issue with a tracker_id that is not available in the project silently uses another tracker (201 Created instead of 422)NewJan from Planio www.plan.ioActions
Actions #1

Updated by Jan from Planio www.plan.io about 4 hours ago

  • Related to Defect #44721: Creating an issue with a tracker_id that is not available in the project silently uses another tracker (201 Created instead of 422) added
Actions

Also available in: Atom PDF