Project

General

Profile

Actions

action #65702

open

[functional][y] 200 HTTP response status code is returned even though invalid filter type is used

Added by oorlov about 4 years ago. Updated 5 months ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
2020-04-16
Due date:
% Done:

0%

Estimated time:

Description

libyui-rest-api returns 200 HTTP response status code, when sending request with the invalid/unsupported filter type (Other than id, label, type).

Steps to reproduce:

  1. Run any app with libyu-rest-api (e.g. xdg-su -c "env YUI_HTTP_PORT=9999 /sbin/yast2 timezone");
  2. Send GET request with wrong filter type (e.g. curl -s -o /dev/null -w "%{http_code}" http://localhost:9999/v1/widgets?idzzz=manuals).
  3. Note the response code.

Expected result:
404 or other error response code is returned.
Actual result:
200 (Success) response code is returned.

Actions #1

Updated by riafarov about 4 years ago

  • Target version set to future
Actions #2

Updated by riafarov about 4 years ago

As per our discussion, there is no good reason to add such check now. However, I've added it to POST request in case no search criteria is provided.

Actions #3

Updated by riafarov over 3 years ago

  • Project changed from openQA Tests to qe-yam
Actions #4

Updated by okurz over 2 years ago

  • Priority changed from Normal to Low

This ticket was set to "Normal" priority but was not updated within the SLO period for "Normal" tickets (365 days) as described on https://progress.opensuse.org/projects/openqatests/wiki/Wiki#SLOs-service-level-objectives. The ticket will be set to the next lower priority of "Low" as discussed with qe-yast PO oorlov (https://suse.slack.com/archives/C02LECV2R0X/p1636974668013200)

Actions #5

Updated by JERiveraMoya 6 months ago

  • Parent task deleted (#50672)
Actions #6

Updated by JERiveraMoya 5 months ago

  • Target version deleted (future)
Actions

Also available in: Atom PDF