Image Service API v2 (CURRENT) in Image Service API Reference

Bug #1618897 reported by George Shuklin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Medium
tamil vanan

Bug Description

Following example in the section "Image data" is incorrect:

curl -i -X PUT -H "X-Auth-Token: $token" \
   -H "Content-Type: application/octet-stream" \
   -d @/home/glance/ubuntu-12.10.qcow2 \
   $image_url/v2/images/{image_id}/file

-d option is equal to --data-ascii, which, according to curl man page is:

"When --data is told to read from a file like that, carriage returns and newlines will be stripped out."

This will mange uploaded image.

Proper command line is:

curl -i -X PUT -H "X-Auth-Token: $token" \
   -H "Content-Type: application/octet-stream" \
   --data-binary @/home/glance/ubuntu-12.10.qcow2 \
   $image_url/v2/images/{image_id}/file

Tags: user-guide
Revision history for this message
George Shuklin (george-shuklin) wrote :

fix typo.

description: updated
tamil vanan (tamilhce)
Changed in openstack-manuals:
assignee: nobody → tamil vanan (tamilhce)
tamil vanan (tamilhce)
Changed in openstack-manuals:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/364108

Changed in openstack-manuals:
importance: Undecided → Medium
tags: added: user-guide
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/364108
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=d6055bca779594ba3cdeb651c8d8d40c97019035
Submitter: Jenkins
Branch: master

commit d6055bca779594ba3cdeb651c8d8d40c97019035
Author: tamilhce <email address hidden>
Date: Thu Sep 1 07:12:34 2016 +0000

    Fixing incorrect parameter in Image Service API v2

    For uploading binary image data
    the correct pararmeter is --data-binary

    Closes-Bug: #1618897

    Change-Id: I8e94ec7965356c0817b4d3add3c2e564fa5e8d09

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.