Skip to content

fix(events): percent-encode event identifiers in request paths - #148

Merged
AntoniosBarotsis merged 4 commits into
resend:mainfrom
shafiktanbir:fix/encode-event-identifiers
Nov 23, 2026
Merged

AntoniosBarotsis merged 4 commits into
resend:mainfrom
shafiktanbir:fix/encode-event-identifiers

Conversation

@shafiktanbir

@shafiktanbir shafiktanbir commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

EventsSvc::get, EventsSvc::update, and EventsSvc::delete accept event names as well as UUIDs, and interpolating unencoded identifiers directly into /events/{event_id} splits or truncates request paths that contain characters such as /, ?, #, %, or spaces.

Percent-encode event_id with urlencoding::encode via a shared event_path helper across all three methods, and add a local HTTP request-line unit test covering get, update, and delete.


Summary by cubic

Fixes request paths in EventsSvc and TemplateSvc so identifier names containing characters like /, ?, #, %, or spaces no longer split or truncate the URL. Identifiers are now percent-encoded via urlencoding::encode across all event methods (get, update, delete) and template methods (get, update, publish, duplicate, delete), with a test verifying the encoded request line for each event method.

Written for commit ebd14f4. Summary will update on new commits.

View guided diff

@AntoniosBarotsis
AntoniosBarotsis merged commit 586b417 into resend:main Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants