Skip to content

Harden the input validation in acceptNegotiation #1779

Closed

Description

@Jagadeeshftw

Problem

src/middleware/acceptNegotiation.ts (126 lines) is untested, so nothing pins how it behaves on malformed input.

Unvalidated input that reaches further into the system is how a display bug becomes a data bug.

Scope

Add the missing coverage for src/middleware/acceptNegotiation.ts. Do not change its behaviour unless a test proves it wrong.

Acceptance criteria

  • Malformed, empty and oversized inputs are rejected with a typed error
  • Rejection happens before any state is written
  • The caller can tell why the input was rejected
  • Valid input is unaffected

Validation

New tests beside the file. pnpm test passes.

Activity

  1. ranjeet150 commented on Oct 18, 2026

    @ranjeet150

    Hello,

    I am interested in taking up "Harden the input validation in acceptNegotiation" and implementing a production-grade solution.

    I have reviewed the problem description and acceptance criteria for this issue. I have a clear, tested implementation ready with defensive error handling and 100% green CI proof.

    I will deliver a clean, well-tested, and production-ready PR promptly upon assignment. Kindly assign this issue to me.

    Thank you!

  2. Johnsource-hub commented on Oct 19, 2026

    @Johnsource-hub
    Contributor

    @Johnsource-hub has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi Maintainer! I'd like to work on this issue. I'm confident I can complete this task and submit a PR within 24 hours.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Johnsource-hub to this issue.

  3. Ova-Klik commented on Oct 19, 2026

    @Ova-Klik
    Contributor

    @Ova-Klik has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainer, please assign this issue to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Ova-Klik to this issue.

  4. Times-stack commented on Oct 19, 2026

    @Times-stack
    Contributor

    @Times-stack has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainer I would like to work on this issue please assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Times-stack to this issue.

  5. Jagadeeshftw commented on Oct 19, 2026

    @Jagadeeshftw
    ContributorAuthor

    @Ova-Klik — assigned. Good luck!

    Do read the complete description; the PR needs to cover every requirement and acceptance criterion listed. Please submit a quality PR with tests.

    Please open the PR within 48 hours or you may be unassigned to free the issue up.

    Join the Telegram group if you haven't already: https://t.me/+u5qmu35nZ7I0OTU1

  6. drips-wave commented on Oct 19, 2026

    @drips-wave

    Congratulations, @Ova-Klik! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @Ova-Klik: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  7. Ova-Klik commented on Oct 20, 2026

    @Ova-Klik
    Contributor

    @Jagadeeshftw Kindly review and merge, issue resolved.

  8. grantfox-oss commented on Oct 21, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @Ova-Klik's PR #1839 was approved and merged by @Jagadeeshftw.

    🏆 @Ova-Klik: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (621 total points). Track your full progress on GrantFox.

    👏 Great work, @Ova-Klik! Keep contributing to Fluxora-Org.

  9. drips-wave commented on Oct 21, 2026

    @drips-wave

    This issue has been completed by @Ova-Klik as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @Ova-Klik: You earned 100 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugBugpriority:highHigh difficulty / architectural or cross-cutting

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions