Skip to content

Incorrect handling of proposalId validation. #9

@hashir-ayaz

Description

@hashir-ayaz

Bug Report

Defect ID

TC_BVA_010

Summary

Incorrect handling of proposalId validation.

Steps to Reproduce

  1. Send a GET request to /getProposalById/:id with an existing proposal ID.
  2. Send a GET request to /getProposalById/:id with a validly formatted but non-existing proposal ID.

Expected Result

  1. For an existing ID:
    • Response status: 200 OK.
    • Valid proposal details are returned.
  2. For a validly formatted but non-existing ID:
    • Response status: 404 Not Found.

Actual Result

For a validly formatted but non-existing ID:

  • Response returned an unexpected status or incorrect error handling.
  • Response body:
    {
        "proposal": null
    }

Severity and Priority

  • Severity: Medium
  • Priority: High

Status

New

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions