Project

General

Profile

Actions

Bug #2179

closed

Wrong owner_type on the request returns 500

Added by Daniel Lobato Garcia almost 12 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Low
Category:
API
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi all,

This request:

Parameters: {"id"=>"4777", "host"=>{"owner_id"=>1, "owner_type"=>"UserGroup"}}
Authorized user user (Name Lastname)
Operation FAILED: uninitialized constant UserGroup
Completed 500 Internal Server Error in 341ms

Should return a 400 (bad request) instead of the 500 (Internal server error) it currently returns.

Actions

Also available in: Atom PDF