WaterButler is a Python web application for interacting with various file storage services via a single RESTful API, developed at Center for Open Science.
Apache License 2.0
62
stars
76
forks
source link
[HotFix] [SVCS-913] Fix Conflict Handling For Dropbox Contiguous Upload #364
A bug was introduced during dropbox chunked upload where the argument conflict is not passed along from _upload()to _contiguous_upload() and _chunked_upload(). This bug led to all requests made to the dropbox upload API missing the mode parameter in the required header Dropbox-API-Arg.
Coverage increased (+0.002%) to 91.841% when pulling 094d79005904cc03ec1dc60ca9174e8c79843eeb on cslzchen:hotfix/dropbox-api-arg into 848283eaf4b558d1e7a2afb145dadf166a5a1199 on CenterForOpenScience:master.
Ticket
https://openscience.atlassian.net/browse/SVCS-913
Purpose
A bug was introduced during dropbox chunked upload where the argument
conflict
is not passed along from_upload()
to_contiguous_upload()
and_chunked_upload()
. This bug led to all requests made to the dropbox upload API missing themode
parameter in the required headerDropbox-API-Arg
.See https://github.com/CenterForOpenScience/waterbutler/pull/347/files#diff-c3a345e63f19827819cde3a30cae89d6L262 and https://github.com/CenterForOpenScience/waterbutler/pull/347/files#diff-c3a345e63f19827819cde3a30cae89d6L255
Changes
_contiguous_upload()
now takes in theconflict
argument from_upload()
_chunked_upload()
now takes in theconflict
argument from_upload()
and passed along to the_complete_session()
path_arg
from_upload()
to_contiguous_upload()
upload_args
in_chunked_upload()
Side effects
No
QA Notes
Should this be Dev QA? @felliott
Deployment Notes
No