Return-Path: X-Original-To: apmail-libcloud-notifications-archive@www.apache.org Delivered-To: apmail-libcloud-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2FFC107E4 for ; Thu, 27 Nov 2014 05:22:13 +0000 (UTC) Received: (qmail 17200 invoked by uid 500); 27 Nov 2014 05:22:13 -0000 Delivered-To: apmail-libcloud-notifications-archive@libcloud.apache.org Received: (qmail 17099 invoked by uid 500); 27 Nov 2014 05:22:13 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 16976 invoked by uid 99); 27 Nov 2014 05:22:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Nov 2014 05:22:13 +0000 Date: Thu, 27 Nov 2014 05:22:13 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: notifications@libcloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LIBCLOUD-638) Can't set CORS headers via container.upload_object_via_stream() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LIBCLOUD-638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14227274#comment-14227274 ] ASF GitHub Bot commented on LIBCLOUD-638: ----------------------------------------- GitHub user pzrq opened a pull request: https://github.com/apache/libcloud/pull/403 [LIBCLOUD-638] Can't set CORS headers via container.upload_object_via_stream() https://issues.apache.org/jira/browse/LIBCLOUD-638 You can merge this pull request into a Git repository by running: $ git pull https://github.com/mathspace/libcloud 638_cors_headers Alternatively you can review and apply these changes as the patch at: https://github.com/apache/libcloud/pull/403.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #403 ---- commit d453ef99bffdeaa7c41f5fb76a5df6985ddce2ae Author: Peter Schmidt Date: 2014-11-27T00:20:38Z Remove misleading . commit a1b078b729e0f68bbc83cd56ed51bbf8b70726e1 Author: Peter Schmidt Date: 2014-11-27T00:20:57Z Typo: fill instead of will. commit 5c9ad396f54b90912cefe272f68df5fc1b5926fe Author: Peter Schmidt Date: 2014-11-27T03:01:07Z [LIBCLOUD-638] Add, document and test for headers to ``upload_object_via_stream``, and similar methods to enable supporting CORS (or other) headers in the cloudfiles driver: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Access-Control-Allow-Origin http://docs.rackspace.com/files/api/v1/cf-devguide/content/Assigning_CORS_Headers_to_Requests-d1e2120.html commit 599f33a5eaff7408a7bc577f3863f302fe98e5e7 Author: Peter Schmidt Date: 2014-11-27T03:44:47Z Document something that affects a full usage of a bytes iterator but I have no idea on the correct fix for. e.g. bytes(37) returns 37 null bytes... commit bf0ef50dfc83e1a78c60f080cabe07faddaa9d71 Author: Peter Schmidt Date: 2014-11-27T05:05:43Z Consistently order as :param arg: then :type arg: (if there's a higher level coding convention I'll happily swap the other half of this file instead). ---- > Can't set CORS headers via container.upload_object_via_stream() > --------------------------------------------------------------- > > Key: LIBCLOUD-638 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-638 > Project: Libcloud > Issue Type: New Feature > Components: Storage > Reporter: Peter Schmidt > > Would be nice to have the ability to set Cross-Origin Resource Sharing (CORS) headers, and probably other headers too when using `container.upload_object_via_stream()` without subclassing and overriding several lower level functions. > References: > https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Access-Control-Allow-Origin > http://docs.rackspace.com/files/api/v1/cf-devguide/content/Assigning_CORS_Headers_to_Requests-d1e2120.html > Ran into this migrating a project from Rackspace cloudfiles which allows setting of CORS headers. -- This message was sent by Atlassian JIRA (v6.3.4#6332)