Skip to content

gcloud.storage.connection.Connection.api_request defaults path to None, but doesn't handle it #140

@tseaver

Description

@tseaver

https://github.com/GoogleCloudPlatform/gcloud-python/blob/master/gcloud/storage/connection.py#L165

If the 'path' argument is not passed, the generated URI is nonsensical. We should either default to a sensible path ('/'), or else test for None and do something reasonable. As an alternative, we could just make 'path' a required argument (as it is for 'build_api_url').

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions