~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

createInvite accepts expiry times that are past or not in UTC

Closed
Closed chadtmiller.com opened this issue 0 comments

What happened

expiresAt: "2020-01-01T00:00:00Z" is accepted. The invite is written to the invitee's inbox and the host's list already lapsed: it can't be redeemed and listInvites hides it, yet the call answers its uri as if it worked. millis_of also needs a trailing Z, so 2026-12-01T00:00:00+01:00, a valid lexicon datetime, is refused with InvalidRequest. No test covers either case.

How to see it

Read against docs/fresh at 4636e6d, the code at: group_invites.rs:174-177, 70-71. Paths are under crates/group-host/src unless they say otherwise. Severity: low.

What you expected

Refuse an expiresAt that isn't in the future, and accept numeric offsets (or say in the lexicon that only UTC Z is taken).

Where

The host, as built from 4636e6d. Found while checking the docs against the code.