radosgw refuses upload when Content-Type missing from POST policy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to get files into radosgw (Ubuntu Ceph package
10.2.3-0ubuntu0.16.04.2) using Fine Uploader
https://github.com/FineUploader/fine-uploader but I'm running into
difficulties in the case where the uploaded file has a filename
extension which the browser can't map to a MIME type (or, no extension
at all).

The radosgw replies with a 403 error, "Policy missing condition:
Content-Type". Examining the policy which the browser sends as part of
the multipart data confirms that there is no Content-Type. (The POST and
multipart do have Content-Type headers.) The same code and POST works
fine against AWS S3. Should radosgw require a Content-Type in the POST
policy when AWS S3 doesn't? It seems that for maximum compatibility, it
shouldn't.

The bucket's CORS policy is "<AllowedHeader>*</AllowedHeader>" but it
doesn't work with explicitly mentioning Content-Type either.

I put a radosgw debug=20 log of the successful OPTIONS call and failing
POST call here:
https://docs.google.com/document/d/1i3exJSil1xj14ZrDOF_oM9eZC238gnNVAsnaZ-Pkvzo/edit?usp=sharing

Happy to provide other debug info if necessary.

thanks,
Dave
-- 
** Dave Holland ** Systems Support -- Informatics Systems Group **
** 01223 496923 ** The Sanger Institute, Hinxton, Cambridge, UK **


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux