Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1063315 - unable to create an app from custom cartridge manifest via REST
Summary: unable to create an app from custom cartridge manifest via REST
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Master
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-10 13:46 UTC by Oleg Fayans
Modified: 2016-12-01 00:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-10 14:53:45 UTC


Attachments (Terms of Use)
my manifest (deleted)
2014-02-10 13:46 UTC, Oleg Fayans
no flags Details

Description Oleg Fayans 2014-02-10 13:46:43 UTC
Created attachment 861396 [details]
my manifest

Description of problem:
When I try to create an app from custom cartridge manifest, I get the following error:
The cartridge manifest at 'https://github.com/ofayans/openshift-custom-php/blob/master/metadata/manifest.yml' could not be downloaded: The cartridge manifest at 'https://github.com/ofayans/openshift-custom-php/blob/master/metadata/manifest.yml' must be smaller than 20480 bytes

The manifest's size is, however, only some 3 kilobytes


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

How reproducible:
always

Steps to Reproduce:
1. execute the following rest request:
curl -k -s -H "Content-Type: application/json" -u $ofayans1@redhat.com:redhat https://$OPENSHIFT_BROKER/broker/rest/domains/somedomain/applications -X POST -d '{"name":"app1","cartridges":{"url":"https://github.com/ofayans/openshift-custom-php/blob/master/metadata/manifest.yml"}}' | json_reformat

Actual results:
Error is returned

Expected results:
Should pass

Additional info:

Comment 1 Dan McPherson 2014-02-10 14:53:45 UTC
You need to use the raw form of the url.  Example:

https://raw.github.com/ofayans/openshift-custom-php/master/metadata/manifest.yml


On the page:

https://github.com/ofayans/openshift-custom-php/blob/master/metadata/manifest.yml

there is a button above and to the right of the content that saws RAW to link you to the contents of just the file.


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