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

File upload fails on GCP with group mail #1

Open
dojeda opened this issue Sep 17, 2019 · 0 comments
Open

File upload fails on GCP with group mail #1

dojeda opened this issue Sep 17, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dojeda
Copy link
Member

dojeda commented Sep 17, 2019

When there is a mail that is not a user email but a group email, uploading a file fails with a 400 error while setting the blob permissions:

WARNING quetzal.app.api.data.file 2019-09-17 15:33:41 Failed to set file permissions
Traceback (most recent call last):
  File "/code/quetzal/app/api/data/file.py", line 137, in create
    storage.set_permissions(obj, workspace.owner)
  File "/code/quetzal/app/api/data/storage/__init__.py", line 73, in set_permissions
    return gcp.set_permissions(file_obj, owner)
  File "/code/quetzal/app/api/data/storage/gcp.py", line 60, in set_permissions
    acl.save()
  File "/usr/local/lib/python3.6/site-packages/google/cloud/storage/acl.py", line 504, in save
    self._save(acl, None, client)
  File "/usr/local/lib/python3.6/site-packages/google/cloud/storage/acl.py", line 476, in _save
    query_params=query_params,
  File "/usr/local/lib/python3.6/site-packages/google/cloud/_http.py", line 319, in api_request
    raise exceptions.from_http_response(response)
google.api_core.exceptions.BadRequest: 400 PATCH https://www.googleapis.com/storage/v1/b/quetzal-ws-73-operator-benchmark/o/20190917-151546.hdf5?projection=full: Group set as user: [email protected]

This should not be a 400 but a 500. More importantly, the GCP backend should manage the group e-mail correctly.

@dojeda dojeda added the bug Something isn't working label Sep 17, 2019
@dojeda dojeda self-assigned this Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant