Bug 1030984

Summary: property url for embedded (add-on) cartridges is always empty
Product: OKD Reporter: Andre Dietisheim <adietish>
Component: MasterAssignee: Lili Nader <lnader>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: mfisher
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-25 22:27:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Andre Dietisheim 2013-11-15 12:52:20 UTC
Description of problem:
When adding an embedded (add-on) cartridge, I get a response wheren the "url" property is always undefined

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

How reproducible:
add an add-on cartridge, inspect the json you get back, look for the "url"-property

Steps to Reproduce:
1. add an add-on cartridge
2. inspect the json you get back
3. inspect the "url" property

Actual results:
the "url" property is "undefined", the info is present in the "connection_url" property though:

<snip>
{
    ...
    "name" => "mongodb-2.2",
    "properties" => [
        ...
        {
            "name" => "connection_url",
            "type" => "cart_data",
            "description" => "Mongo DB connection URL",
            "value" => "mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/"
        }
    ],
    ...
    "type" => "embedded",
    "url" => undefined,
    ...
}
</snip>

Expected results:
the "url" property should match the value of the "connection_url" property

Additional info:

Comment 1 Lili Nader 2013-11-25 22:27:37 UTC
The url property is for downloaded cartridges and is different from connection_url. All other cartridges (non-downlaoded) do not have a url.  

See below link for more info:

https://www.openshift.com/developers/download-cartridges