mitodl / ocw-data-parser

A parsing script for MIT OpenCourseWare course data
0 stars 0 forks source link

External wav file link throws a signature error on S3, needs to be URL-encoded #72

Open mbertrand opened 3 years ago

mbertrand commented 3 years ago

The URL includes a single quote, the file is on S3, and a signature error is returned unless the single quote is url-encoded to %27:

Page: https://ocw.mit.edu/courses/music-and-theater-arts/21m-873-theater-arts-topics-suburbia-january-iap-2008/music/ URL: https://ocw.mit.edu/ans7870/21m/21m.873/iap08/music/Off-White-Noise--Moo's-So-Great-She-Could-Probably-Be-Science-Fiction.wav

Changing it to this works: https://ocw.mit.edu/ans7870/21m/21m.873/iap08/music/Off-White-Noise--Moo%27s-So-Great-She-Could-Probably-Be-Science-Fiction.wav

pdpinch commented 3 years ago

I think that's a problem with how it was uploaded and how a hash gets computed based on the filename. I'd suggest re-uploading those with different filenames.