waterbutler
waterbutler copied to clipboard
[SVCS-256] Adding "undecoded_path" to providers
refs: https://openscience.atlassian.net/browse/SVCS-256
Purpose
We need the un-decoded file name to distinguish between files with special characters. ie: "me/ow.txt and me%2Fow.txt" The decoding tornado does makes these files hard to distinguish.
Summary of changes
Added an "undecoded_path" variable to the base_provider. This gets set in the "prepare" function to be the undecoded_path received from the request. The path is pulled from 'self.request.uri'
QA
QA will come on individual tickets for providers
Coverage increased (+0.008%) to 76.688% when pulling 7ea50793e50e358580a67d670aaaee881d395b9b on AddisonSchiller:feature/url_decode into b787a92c180697cb8fb2f5b6c402cf7b931b339d on CenterForOpenScience:develop.
Coverage increased (+0.02%) to 79.342% when pulling a19fc66b3452e0f6397e63fe7a3976c7c8f79ee7 on AddisonSchiller:feature/url_decode into 879aedd4a424f5079929cf435c1cebe80e0cc2f7 on CenterForOpenScience:develop.
Coverage increased (+0.02%) to 79.342% when pulling a19fc66b3452e0f6397e63fe7a3976c7c8f79ee7 on AddisonSchiller:feature/url_decode into 879aedd4a424f5079929cf435c1cebe80e0cc2f7 on CenterForOpenScience:develop.
Added requested Changes
Coverage increased (+0.02%) to 79.342% when pulling a8717a57a02d9741cabb1a2ed9d452174c49c763 on AddisonSchiller:feature/url_decode into 879aedd4a424f5079929cf435c1cebe80e0cc2f7 on CenterForOpenScience:develop.
@AddisonSchiller Might want to wrap up this conflict.