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 #1

Updated by Ohad Levy about 10 years ago

maybe relates to friendly_id ?

Actions #2

Updated by Dominic Cleal about 10 years ago

  • Related to Feature #4386: implement gem friendly_id to simply find by id, name, label, etc added
Actions #3

Updated by Dominic Cleal about 10 years ago

  • Translation missing: en.field_release set to 21
Actions #4

Updated by Joseph Magen about 10 years ago

  • Status changed from New to Assigned
  • Assignee set to Joseph Magen
  • Target version set to 1.7.2
Actions #5

Updated by The Foreman Bot about 10 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/1812 added
  • Pull request deleted ()
Actions #6

Updated by Joseph Magen about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF