Bug #6655

POST callpermissions doesn't check required name field

Added by Fran├žois Blackburn about 2 months ago. Updated about 2 months ago.

Assignee:Fran├žois Blackburn
Category:REST API
Target version:17.07
Security issue:No Read documentation?:No
In versions:<= 17.06


When POST /callpermissions without body
Then return 201

Expected: return 400 missing name field


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


#1 Updated by Pascal Cadotte-Michaud about 2 months ago

  • Status changed from Code review to Resolved

Also available in: Atom PDF