Skip to content

Server accepts a tag recognizer without supportedLanguage, which auto-classification then silently skips #37516

Closed

Description

@ayush-shah

Affected module

Backend (Tags / Auto Classification)

Describe the bug

The server accepts a tag recognizer whose recognizerConfig has no supportedLanguage, for example a pattern recognizer edited so the language is cleared. The ingestion client cannot parse that tag: its generated PatternRecognizer model requires supportedLanguage and has no default. On 2.0.x, auto-classification logs Failed to fetch tags for classification <name>: N validation errors for Tag. It then loads no tag from that classification, and every column reports No new tags to analyze ... (all 0 candidates already applied). Since #34973, main skips only the unparseable tag. Either way the run ends in success, so the tag is never applied and nobody is told.

The server stores recognizerConfig as an untyped object and does not check what is inside it.

To Reproduce

  1. Create a tag with a pattern recognizer.
  2. PATCH remove /recognizers/0/recognizerConfig/supportedLanguage. The server returns 200.
  3. Run an auto-classification pipeline. The tag is never applied (on 2.0.x, no tag in that classification is).

Expected behavior

The server rejects a recognizer that the ingestion client cannot parse (400 naming the recognizer).

Version

2.0.x

Activity

  1. added a commit that references this issue on Nov 11, 2026
    93ec4e2
  2. added a commit that references this issue on Nov 13, 2026
    aee9867
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

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done ✅

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions