Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

DELETE request on /lots/<id>/devices/?id=... returns 200 instead of 400 if device doesn't belongs to the lot #264

@slamora

Description

@slamora

Describe the bug
If you perform a DELETE request to remove devices of a lot using an IDentifier of a device that doesn't belong to the lot it returns 200 but backend don't really process the request.

To Reproduce
Steps to reproduce the behavior:

  1. Send DELETE request including some device that doesn't belongs to the lot (but include other that belongs to it)
  2. Server responses with 200 code
  3. Send GET request to list devices of the lot
  4. You get some of the devices that you have tried to DELETE.

Expected behavior
Server should return 400 bad request or similar.

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions