Project

General

Profile

Actions

Bug #7756

closed

API error message can expose too much internal information

Added by Ohad Levy about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

for example, GET /api/v2/hosts/123 returns:


    "message": "Couldn't find Host::Managed with id=123 [WHERE `hosts`.`type` IN ('Host::Managed')]",
    "class": "ActiveRecord::RecordNotFound" 
}

Related issues 1 (0 open1 closed)

Related to Foreman - Feature #4386: implement gem friendly_id to simply find by id, name, label, etcClosedJoseph Magen02/19/2014Actions
Actions

Also available in: Atom PDF