Skip to content

Channels: Unnecessary search for invalid ID #48

@CynthiaTerrazas

Description

@CynthiaTerrazas

Description


When we try to put an incorrect ID for a specific channel such as a number followed by letters, characters or both, instead of id, occurs unnecessary search because the response returns error 404 Not found.

Environment


  • An Notifier Server installed with version 1.0
  • Operating System and version: Windows Server 2012 R2

Requirements


  • Rest Client: E.g. Postman.

API

  • Method: DELETE
  • Endpoint: /api/channels/id

Steps to Reproduce


  1. Open Postman.
  2. In Postman select 'DELETE' method for URL.
  3. In Postman Enter the endpoint and invalid ID . E.g. http://128.0.0.1/api/channels/ 15#$a
  4. Click on Send button.
    Receive:
    status 404

Actual Result


The status code is 404 "Not Found"

Expected Result


The status code should be 400 "Bad Request"

Cynthia Victoria terrazas Gutierrez
Fundacion Jala

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions