Project

General

Profile

action #94901

Updated by cdywan 4 months ago

## Motivation
The tests overview page doesn't validate its input. Omitting the group leads to the site picking up *some* results from the entire db. Invalid values lead to server errors.

Examples:
- https://openqa.opensuse.org/tests/overview
- https://openqa.opensuse.org/tests/overview?groupid=spam
- https://openqa.opensuse.org/tests/overview?groupid=-5

## Acceptance criteria
* **AC1:** Document use case w/o Request fails without a valid group
* **AC2:** Request fails if invalid groups are specified

## Suggestion
- Add message to web UI e.g. "showing failed results from all groups" or something

- Add parameter validation to lib/OpenQA/WebAPI/Controller/Test.pm

Back