Bug 797136 - [Rest API] no Exit_code for error message for some rest api
Summary: [Rest API] no Exit_code for error message for some rest api
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 1.x
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-24 11:11 UTC by Johnny Liu
Modified: 2014-10-26 20:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-02 21:56:56 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Johnny Liu 2012-02-24 11:11:39 UTC
Description of problem:
According to BZ#787295, every error message should have Exit_code attribute, after check the code of rest api, now only keys_controller.rb fills Exit_code attribute in returned message.

The following script does not fill Exit_code attribute:
emb_cart_controller.rb
emb_cart_events_controller.rb
domains_controller.rb
app_events_controller.rb
descriptors_controller.rb
user_controller.rb

I use 'find cloud-sdk/ | xargs grep ":error"' to filter the script and check all error message items.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Meng Bo 2012-02-28 10:30:23 UTC
Checked again on devenv_1648, issue still can be reproduced.
Since the most of the error messages do not contain exit code, so this issue blocked US1895.
Raise the priority to high.

Comment 2 Johnny Liu 2012-03-01 10:26:02 UTC
Verified this bug with devenv_stage_139, and PASS.
Because gears_controller.rb is newly added, and found a minor issue, I opened another bug to track, mark this bug as "verified"


Note You need to log in before you can comment on or make changes to this bug.