Role config values containing equals signs are truncated
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- postgresql, typescript
- Domain
- database
Research direction
Start at the changeRoleConfig2Object entry point and inspect the parser described in the issue, where cur.split(=) is used. Add regression coverage for application_name=api=worker and verify that role list and retrieve responses preserve every segment after the first equals sign.
Written by the indexing model from the issue text.
Description
Description
Role list and retrieve responses truncate configuration values that contain an equals sign. For example, PostgreSQL rolconfig entry application_name=api=worker is returned as application_name: api instead of application_name: api=worker.
Reproduction
Calling changeRoleConfig2Object with:
- application_name=api=worker
- search_path=public
returns application_name: api while the ordinary search_path value is preserved.
Expected behavior
Only the first equals sign separates the configuration key from its value. Subsequent equals signs are part of the PostgreSQL GUC value and should round-trip unchanged.
Root cause
The parser destructures cur.split(=) into two elements, discarding all remaining value segments.
Environment
- supabase/postgres-meta master at 641831e0555d8f9eab278014956ec2cf1ee1174d
- Node.js 24.9.0
- npm 11.6.0
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 223
- PR merge metrics
- No merged PRs in 30d
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 supabase/postgres-meta
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
supabase/postgres-meta#1150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
supabase/postgres-meta#1147 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
supabase/postgres-meta#1146 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
supabase/postgres-meta#1143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
supabase/postgres-meta#1142 ·
All issues in supabase/postgres-meta
Similar issues
-
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 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·