Skip to content

Bug: Video calls list accepts invalid limit values #326

@Jorel97

Description

@Jorel97

GET /api/video-calls parses limit with parseInt and only applies an upper bound:

const limit = Math.min(parseInt(searchParams.get(limit) || 20), 50);

Examples:

  • /api/video-calls?limit=-5 passes -5 into Supabase .limit().
  • /api/video-calls?limit=abc passes NaN into .limit().

Expected: the endpoint should normalize the limit to a finite integer range, e.g. 1..50, before building the query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions