Bug 866626 - Cartridge PUT is returning application instead of cartridge object [US2862]
Summary: Cartridge PUT is returning application instead of cartridge object [US2862]
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Master
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-15 18:29 UTC by Clayton Coleman
Modified: 2015-05-15 00:52 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-06 18:47:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Clayton Coleman 2012-10-15 18:29:53 UTC
PUT /broker/rest/domains/98eu34ntucg/applications/scaling/cartridges/ruby-1.9.json is returning the application resource, not the cartridge resource.

A successful PUT should return GET /broker/rest/domains/98eu34ntucg/applications/scaling/cartridges/ruby-1.9.json

Blocks closing out testing and ui.

Comment 1 Clayton Coleman 2012-10-15 18:31:51 UTC
E.g. PUT /broker/rest/domains/98eu34ntucg/applications/scaling/cartridges/ruby-1.9.json should return:

{status:'ok', messages: [...], type: 'cartridge', data: {scales_from: x, ...}}

but is returning 

{status:'ok', messages: [...], type: 'application', data: {/*data for application*/}}

Comment 2 Rajat Chopra 2012-10-17 03:42:48 UTC
fixed with rev#2b9db98fb91fc323efcf in crankcase.repo

Comment 3 mzimen 2012-10-17 09:31:25 UTC
{"messages":[{"severity":"info","field":null,"exit_code":null,"text":"Updated php-5.3 from application php"}],"version":"1.2","type":"cartridge","status":"ok","data":
...


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