Skip to content

A declaration's kind is not checked like its owner, so a kind with a line break can share a key with another declaration #51

Closed

Description

@CaffeinatedCoder

Found by the analysis of #46.

Problem

DeclarationCodec.Validate refuses an owner with a colon, white space or a control character, and a kind only when it is empty. The identity of a named declaration is name\n{Kind}\n{name}, so kind "index\nx" with name "y" and kind "index" with name "x\ny" hash to one key. The analysis measured it: both get …:63fe0a739b4acedd.

The result is a refusal ("declared twice") of two declarations that are not the same, not a lost declaration.

Done when

A kind with white space or a control character is refused by Key and Value, with a row for it in A_declaration_that_cannot_be_stored_is_refused.

Activity

  1. added this to the 11.0.0 milestone on Nov 11, 2026
  2. added
    bug
    package/core
    severity/low
    area/migrations
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/migrationsbugpackage/coreseverity/low

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions