Skip to content

importccl: the userfile table name generation algorithm breaks with special usernames, and confused client-side and server-side usernames #55389

@knz

Description

@knz

This code:

 qualifiedTableName = DefaultQualifiedNamePrefix + user

(external_storage.go)

breaks when user starts with digits, or when it contains periods. Username consisting of only digits, or containing periods, have been allowed since crdb v19.2.

The code should instead quote the username properly.

Metadata

Metadata

Assignees

Labels

A-disaster-recoveryA-securityC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.S-3-ux-surpriseIssue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions