Skip to content

InfluxDB 2: Deleting not exists label or label with not exists resource should produce 404 Not Found response #18409

Open
@bednar

Description

@bednar

It's should works for all types of resource:

  • Dashboards
  • Notifications
  • Checks
  • TelegrafConfigs
  • NotificationRules
  • Buckets
  • Variables
  • Tasks
  • ...
# Delete label for not exists resource
--> DELETE http://127.0.0.1:9999/api/v2/buckets/ffffffffffffffff/labels/ffffffffffffffff

<-- 204 No Content http://127.0.0.1:9999/api/v2/buckets/ffffffffffffffff/labels/ffffffffffffffff 

Expected behavior:
Produce 404 HTTP response.

Actual behavior:
Produce 204 No Content HTTP response.

Environment info:

  • InfluxDB version: latest nightly build

cc @AlirieGray

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