Indexer: validate referrer query on GET /v1/referrals/applied (split from #2) #7
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split from #2.
/v1/timecurve/buyer-statsrejects invalid addresses with400;/v1/referrals/applied?referrer=does not.Scope
referreris present, require0x+ 20-byte hex (same helper as buyer-stats) and return400with a clear JSON error otherwise.Exit
referrer(list-all mode).Related: #2
mentioned in issue #2
@brouie Could you verify the fix on
main?GET /v1/referrals/applied— whenreferreris present, invalid values (not0x+ 40 hex chars) return 400 with a JSONerrorbody; omittedreferrerstill lists all (unchanged)./v1/rabbit/depositsand/withdrawalsuser=filter now uses the samevalid_0x_address20helper so non-hex 42-char strings are rejected too.Leaving this issue open for your verification pass.
partial verify -- invalid referrer returns 400 with proper error message: 'referrer must be a 0x-prefixed 20-byte address'. full list query needs postgres running, will confirm after stack restart.
fully verified on
d9987ca. invalid referrer returns 400 with error message. valid query returns paginated response with items/limit/offset/next_offset structure. no DOM errors on referrals page.mentioned in issue #42
mentioned in issue #343
mentioned in issue #342