Don't include x-amz-acl header in zarr upload#1710
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1710 +/- ##
=======================================
Coverage 74.82% 74.82%
=======================================
Files 84 84
Lines 11693 11693
=======================================
Hits 8749 8749
Misses 2944 2944
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@kabilar could you please test this branch ( |
yarikoptic
left a comment
There was a problem hiding this comment.
looking into making it compatible with prior installations (e.g. EMBER)
note, I updated branch to get rid of typing check errors
| changed = False | ||
| with RESTFullAPIClient( | ||
| "http://nil.nil", | ||
| headers={"X-Amz-ACL": "bucket-owner-full-control"}, |
There was a problem hiding this comment.
echoing discussion in
was that anywhere in
dandi/files/zarr.py- signed_headers = ";".join(
dandi/files/zarr.py: urllib.parse.parse_qs(upload_url).get("X-Amz-SignedHeaders", [])
dandi/files/zarr.py- ).split(";")
so we could make it conditional and keep working for older deployments like EMBER with "fixed" client?
|
Thanks, testing now. |
|
Upload has initiated. This has resolved the issue. Thank you. |
I believe EMBER plans on merging the infra changes on their end fairly soon, although I could be wrong. cc @NEStock If that's the case we could just coordinate with them, without much downtime. |
@jjnesbitt Yes, we are hoping to update EMBER fork's of dandi-archive & -infrastructure soon. Am I understanding correctly that if this MR is merged into dandi-cli before we update EMBER-DANDI to some commit of dandi-infrastructure, we risk incompatibility? |
Correct, although I don't think we'd merge this in an incompatible way. We'd either try to make this update in a backwards compatible way, or wait until the ember project is caught up, so we can keep the current implementation. My preference is the latter.
For dandi-infrastructure, up to this commit is required. |
Sounds good, thank you! We are planning to do our next sync early next week - will coordinate further via Slack.
Thanks! |
do you see an easy way for this @jjnesbitt ? |
If the |
|
@NEStock -- did you have a chance to upgrade ? |
Yes I believe we are updated as needed. @yarikoptic
|
|
🚀 PR was released in |
Closes #1709
This should fix zarr upload in the wake of dandi/dandi-infrastructure#245 being merged.