Project

General

Profile

Actions

Bug #32732

open

api request to bulk/destroy,

Added by Ondřej Pražák almost 3 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1942399

Description of problem:
When api request to bulk/destroy with same list in included and excluded parameter is sent, I would expect operation to pass with no operation done. If the behaviour is correct please change the error message.

Version-Release number of selected component (if applicable):
6.9 snap 16

How reproducible:
Always

Steps to Reproduce:
Request
https://&lt;hostname&gt;/api/v2/hosts/bulk/destroy with options {'auth': ('<user>', '<password>'), 'verify': False, 'headers': {'content-type': 'application/json'}}, no params and data {"organization_id": 80, "included": {"ids": [26, 27, 28]}, "excluded": {"ids": [26, 27, 28]}}.

Response
nailgun.client - WARNING - Received HTTP 403 response: {"displayMessage":"Action unauthorized to be performed on selected hosts.","errors":["Action unauthorized to be performed on selected hosts."]}

Actual results:
Error message that don't make much sense.

Expected results:
Success, but no action.
Or improved error message.

Additional info:
Not a regression.

SatelliteQE can modify the test_positive_bulk_destroy test to easily verify this.

Actions #1

Updated by Ondřej Pražák almost 3 years ago

  • Category changed from Inventory to API
Actions

Also available in: Atom PDF