DashboardclivalidateResourceId plain identifiers

validateResourceId plain identifiers

Category: preference
Confidence: 1.00
ID: 01a08701-7d43-77ad-95c8-9e3cdd86bef0
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 0
Source session: 0NOyMxFfbiTn5KWud
Created: 2026-09-09 16:30:16
Updated: 2026-09-09 16:30:16

Content

Sentry resource IDs, slugs, and issue IDs must always be plain strings; reject ?, #, %, whitespace, and control characters. Pre-encoding looks safe for URL construction, but the API client encodes again, causing double encoding, while query/fragment characters can alter URL structure. Use rejectPreEncoded(), rejectControlChars(), and validateResourceId() rather than accepting or locally sanitizing these values.

Move to: