GaillyGirl / support-tools

Automatically exported from code.google.com/p/support-tools
Apache License 2.0
0 stars 0 forks source link

Archived downloads with spaces (%20) result in 404 #175

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1.) What problem are you experiencing?

Upon downloading a archived "Download" with a space in its file name, the API 
returns a 404 "NoSuchKey" instead of the correct file.
The files still exists on the original (readonly) project.

2.) Do you have a URL to the problem?
* https://code.google.com/archive/p/reduxcomputing-proximity/downloads
* 
https://storage.googleapis.com/google-code-archive-downloads/v1/code.google.com/
reduxcomputing-proximity/Proximity%201.5.zip
* https://code.google.com/archive/p/wjoy/downloads
* 
https://storage.googleapis.com/google-code-archive-downloads/v1/code.google.com/
wjoy/wjoy%200.7.1.dmg
* https://code.google.com/archive/p/duplicati/downloads
* 
https://storage.googleapis.com/google-code-archive-downloads/v1/code.google.com/
duplicati/Duplicati%201.3.4.dmg

(maybe even more)

Original issue reported on code.google.com by tommy.sp...@gmail.com on 19 Jan 2016 at 12:07

GoogleCodeExporter commented 8 years ago
Thanks for pointing this out! Looking at the Google Cloud Storage bucket, it 
looks like these downloads with spaces were never uploaded. (Perhaps because 
the GCS API rejects the objects.)

I'll see what I can do and reexport downloads.

Original comment by chrsm...@google.com on 19 Jan 2016 at 3:52

GoogleCodeExporter commented 8 years ago
So the problem was my mistake. The way I was retrieving the download files (to 
be mirrored onto Google Cloud Storage) was to make an HTTP request, and in that 
request I wasn't properly encoding URLs.

I've fixed the bug and am reexporting all Google Code download files. This 
issue should be fixed in the next day or two.

Thanks again for logging the bug!

Original comment by chrsm...@google.com on 21 Jan 2016 at 11:21