Skip to content

Database Advisor lint links don't encode special characters in schema or table names #45384

Closed

Description

@oniani1

The link functions in apps/studio/components/interfaces/Linter/Linter.utils.tsx interpolate metadata.schema and metadata.name into URL query strings without calling encodeURIComponent. A schema or table name with &, =, +, or # breaks the filter on the linked page.

Repro: schema a&b=c with a table d e+f. From Database > Advisor click any "View ..." link. The destination page reads a truncated value because URLSearchParams stops at the bare & (or treats + as a space), so the editor / policies / functions panel filters wrong or shows nothing.

15 of the 16 metadata-driven link builders are affected. The one that already encodes is public_bucket_allows_listing at line 338, which is the precedent for the fix.

Activity

  1. added
    external-issue
    on Apr 29, 2026
  2. victoriahughes497-max commented on Apr 30, 2026

    @victoriahughes497-max
  3. added
    bug
    frontend
    and removed on May 2, 2026
  4. added a commit that references this issue on May 4, 2026
    a95b6f9
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

    bugexternal-issuefrontend

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions