diff --git a/tenant/http_server_bucket.go b/tenant/http_server_bucket.go index 5fdb1811d30..8255016ba2a 100644 --- a/tenant/http_server_bucket.go +++ b/tenant/http_server_bucket.go @@ -498,5 +498,13 @@ func validBucketName(bucket *influxdb.Bucket) error { Msg: fmt.Sprintf("bucket name %s is invalid. Buckets may not start with underscore", bucket.Name), } } + // quotation marks will cause queries to fail + if strings.ContainsAny(bucket.Name, "\"") { + return &influxdb.Error{ + Code: influxdb.EInvalid, + Op: "http/bucket", + Msg: fmt.Sprintf("bucket name %s is invalid. Bucket names may not include quotation marks", bucket.Name), + } + } return nil }