[Bug] Query parameter rules drop equals signs from existing values
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- api
Research direction
Start with the shared query parameter parser used by the HTTP Interceptor and reproduce the issue with a value such as token=abc==. Add regression coverage for both adding a parameter and removing an unrelated parameter, then verify that everything after the first equals sign is preserved in the rebuilt URL.
Written by the indexing model from the issue text.
Description
Is this about Requestly HTTP Interceptor?
- Yes, this is about the HTTP Interceptor
What happened?
Query parameter rules lose equals signs that are part of an existing value.
For example, modifying https://example.com?token=abc==&remove=1 parses token as abc. Adding another parameter, or removing the unrelated remove parameter, then rebuilds the URL without the trailing equals signs.
I expected Requestly to split each query parameter on the first equals sign and preserve everything after it as the value.
Steps to reproduce
To reproduce while adding a parameter:
- Create a Query Param rule that adds
added=2. - Apply it to
https://example.com?token=abc==&remove=1. - The rebuilt URL loses the trailing equals signs from
token.
To reproduce while removing a parameter:
- Create a Query Param rule that removes
remove. - Apply it to
https://example.com?token=abc==&remove=1. - The result should be
https://example.com?token=abc==, but the trailing equals signs are dropped.
Where does the bug happen?
- Browser extension (Chrome / Firefox / Edge / Safari)
- Web app (app.requestly.com)
Browser (if extension)
- Chrome
- Firefox
- Edge
- Safari
Operating system (if desktop or relevant)
N/A
Version
- Current
master:700da5b - Extension:
26.7.27
Which area?
rules (redirect, modify headers, replace, etc.)
Logs / screenshots / HAR
Not applicable. This happens in the shared query parameter parser.
Anything else?
A small fix and regression tests for both add and remove operations are ready.
- Dominant language
- TypeScript
- Stars
- 87
- Forks
- 23
- Avg merge
- 14h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from requestly/interceptor
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
requestly/interceptor#26 · 1 comment ·
-
migration:misfiled-interceptor
Difficulty 5/5 Over a week Newbie friendliness 38/100
requestly/interceptor#27 · 2 comments ·
-
migration:misfiled-interceptor
Difficulty 3/5 1-2 days Newbie friendliness 45/100
requestly/interceptor#28 · 1 comment ·
-
migration:misfiled-interceptor type:bug
requestly/interceptor#29 · 2 comments · 1 assignee ·
-
requestly/interceptor#30 · 2 comments · 2 assignees ·
All issues in requestly/interceptor
Similar issues
-
comp/dashboard P3 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
NousResearch/hermes-agent#117722 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·