GraphRepository: parseAtUri no path-segment validation #45
Labels
No labels
auth
bug
composer
correctness
database
durability
enhancement
feeds
interactions
notifications
performance
reliability
safety
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starsetbyte/peregrine#45
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?
What
parseAtUri()usedsubstringBefore("/")andsubstringAfterLast("/")for AT URI parsing — no validation that the URI has the expectedat://did/collection/rkeystructure. Malformed URIs (e.g. missing the collection segment) would produce wrong repoDid/rkey pairs for delete operations.Fix
Now splits on
/and requires at least 3 segments (parts.size >= 3) with a clear error message. Usesparts[0]andparts.last()for explicit indexing.Fixed in PR #36.