Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bypass of blob storage downloads with custom bundle stores #3991

Merged
merged 8 commits into from
Apr 4, 2022
Merged

Conversation

epicfaace
Copy link
Member

@epicfaace epicfaace commented Feb 8, 2022

Fixes #3963.

How I tested this manually

Start server: codalab-service start -bds default azurite

In Web CLI, add blob storage store: cl store add --name blob --storage-type azure_blob --url azfs://devstoreaccount1/bundles

  1. In Web CLI, upload a bundle using the blob store: cl upload --store blob -c test. View the bundle contents (download the bundle) on the website and it should redirect to Azurite (localhost:10000):

image

  1. In Web CLI, upload a bundle using the legacy way of uploading to blob storage: cl upload -a -c test. View the bundle contents on the website and it should also redirect to Azurite (localhost:10000).

Previously, the issue with #3963 was that 2) would properly redirect and 1) would not properly redirect. Hope this helps as an explanation of #3963 @pranavjain !

@epicfaace
Copy link
Member Author

@teetone @jzwang43 please review

@epicfaace
Copy link
Member Author

Please review when you get a chance @teetone @jzwang43

@epicfaace
Copy link
Member Author

@teetone @jzwang43 please review

@mergify mergify bot merged commit 65a8fad into master Apr 4, 2022
@mergify mergify bot deleted the up branch April 4, 2022 22:35
@epicfaace epicfaace mentioned this pull request Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uploading a bundle with --store blob doesn't bypass the server / redirect to blob when getting bundle contents
2 participants