Skip to content

validation glitches in TraceState.validateKey #1027

@codefromthecrypt

Description

@codefromthecrypt

I noticed that TraceState.validateKey is loose compared to the ABNF in the spec. There are a couple missing tests:

  • when tenant format is used (@), the right-side can be 1-14 characters. this is not validated
  • only when tenant format is used (@), the first character can be a digit. Otherwise, it must be a letter

There might be some other problems, but these I noticed. As the spec text doesn't elaborate on the above points, I tried to correct it FWIW w3c/trace-context#386

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions