Benjamin Manns
de1ec2d079
[rackspace|storage] Add copy method to Rackspace::File.
2012-02-16 14:44:31 -05:00
Zachary Danger Campbell
49cde23541
Fix intial public_url when saving using rackspace_cdn_ssl = true
2011-12-30 13:12:09 -06:00
H. Wade Minter
559384ff4a
Put escaping logic into the collection get_url call.
2011-09-20 16:00:57 -04:00
H. Wade Minter
016d640683
Tweak to escape the Cloud Files filename before passing to public_url.
...
Previously, a Rackspace Cloud Files storage object with a name like
"my_files/1234/original/picture #1.jpg" would generate a public URL like:
http://c21641.r41.cf1.rackcdn.com/user_files/1313284/thumb/IMG_4034 #1.jpg
The # character in the URL would get interpreted by Cloud Files as an
anchor marker, and the file would not load. This change does the
Fog::Rackspace.escape on the key (excluding the / path separator character)
to generate a working URL of the form:
http://c21641.r41.cf1.rackcdn.com/user_files/1313284/thumb/IMG_4034%20%231.jpg
Which is correctly interpreted by Cloud Files and pulls up.
Both of those URLs are live to demonstrate the issue.
2011-09-20 13:36:37 -04:00
geemus
387f374d2c
[rackspace|storage] fix broken model paths
...
closes #516
2011-09-20 10:15:03 -05:00
geemus
ac480ad928
[storage] consolidate
2011-01-07 15:34:20 -08:00
geemus
a063173ba9
[rackspace|storage] fixes for directory/files
2010-11-23 11:57:29 -08:00
geemus
5854e249aa
more consistent attribute storage/usage
2010-11-19 13:45:45 -08:00
geemus
3f5b48e812
add public methods to file model
2010-11-18 11:18:46 -08:00
geemus
00171dfa8a
[storage] correctly set content_length on save
2010-11-17 14:54:48 -08:00
geemus
59396d59c7
[storage] better header handling in mocks/models
2010-11-10 13:51:40 -08:00
geemus
070e2565d3
[storage] better behavior related to headers
2010-11-08 17:14:21 -08:00
geemus
e3a75d9883
[storage] typecast values from headers
2010-11-08 16:48:14 -08:00
geemus
93b8d32845
[storage] add public= and public_url for directory, public_url for file
2010-11-05 15:31:44 -07:00
geemus
0a9bb3b553
[storage] shared tests
2010-11-04 11:12:44 -07:00
geemus
e62f1198ea
[rackspace|storage] fix deprecated method usage
2010-10-29 16:42:06 -07:00
geemus
6037202b3b
[rackspace|storage] fixes for attribute alias discrepancies
2010-10-18 11:09:19 -07:00
geemus
46fdab47e5
[aws|storage] continuing to flesh out tests
2010-10-12 18:07:36 -07:00
geemus
f890f27141
fixing warnings
2010-10-12 16:23:35 -07:00
geemus
ddabb17ee9
[rackspace][storage] allow for passing options to specify headers on put
2010-10-07 11:10:01 -07:00
geemus
619f7d430f
fix paths for core requires
2010-10-04 14:02:08 -07:00
geemus
a963703309
fixes for/from specs/tests
2010-09-09 17:50:38 -07:00
geemus
eb6bca6f34
leftovers that I missed on the first pass in the last few commits
2010-09-08 14:41:14 -07:00
geemus
a5411d8cf9
[rackspace] rename files/servers to storage/compute
2010-09-08 13:50:23 -07:00