Project

General

Profile

Bug #6655

POST callpermissions doesn't check required name field

Added by Fran├žois Blackburn 9 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Category:
REST API
Target version:
Security issue:
No
In versions:
<= 17.06
Read documentation?:
No

Description

When POST /callpermissions without body
Then return 201

Expected: return 400 missing name field

or

When POST /callpermissions without body twice
Then the second POST return:

[
  "Unexpected error: (IntegrityError) duplicate key value violates unique constraint \"rightcall_name_key\"\nDETAIL:  Key (name)=() already exists.\n 'INSERT INTO rightcall (description) VALUES (%(description)s) RETURNING rightcall.id' {'description': None}" 
]

Expected: 400

History

#1 Updated by Pascal Cadotte-Michaud 9 months ago

  • Status changed from Code review to Resolved

Also available in: Atom PDF