Project

General

Profile

Actions

action #104631

closed

coordination #154768: [saga][epic][ux] State-of-art user experience for openQA

coordination #154771: [epic] Improved test developer user experience

[easy][beginner] WebUI: No error message when putting invalid characters in machines/testsuites settings size:S

Added by tinita almost 3 years ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2022-01-05
Due date:
% Done:

0%

Estimated time:

Description

Observation

When I go to "Machines", click on the edit button and put presumable invalid characters into a settings name, e.g. HDDSIZEGB!!=20 and click the Save button, I don't get an error message.
Apparently an API request is made http://127.0.0.1:9526/api/v1/machines/1001 which returns 200 OK and {"result":1}. But the new setting is not saved, just silently ignored.

If I add a new setting with invalid characters, e.g. foo!!=bar, then it is saved as foo=bar.

Acceptance criteria

  • AC1: Invalid settings keys like ! are explicitly not allowed on admin tables and not silently removed (or at least there is a user facing warning about it).

Suggestions

  • Be sure to rebase on top of recently merged https://github.com/os-autoinst/openQA/pull/5973
  • Lookup in neighboring code if there is a range of acceptable characters (at least [[:alnum:]_]) or a blocklist containing at least !
  • Consider to also add tests on the lower level, e.g. API route in t/api/05-machines.t
  • Extend the according test in t/ui/13-admin.t to expect clear feedback
  • Implement accordingly
  • Refactor/simplify the code as necessary

Further details

entrance level issue


Files

webui-edit-machines.png (29.1 KB) webui-edit-machines.png tinita, 2022-01-05 10:33
Actions #1

Updated by okurz over 2 years ago

  • Tags set to ui, ux, easy, beginner, entrance level
  • Subject changed from WebUI: No error message when putting invalid characters in machines/testsuites settings to [easy][beginner] WebUI: No error message when putting invalid characters in machines/testsuites settings
  • Description updated (diff)
Actions #2

Updated by okurz about 2 months ago

  • Target version changed from future to Ready
Actions #3

Updated by mkittler about 2 months ago ยท Edited

The behavior is still reproducible. I'd block this on #64412 / https://github.com/os-autoinst/openQA/pull/5973. After that we'll see how the behavior has changed. I just tested it with the PR applied and the behavior is still reproducible. To avoid too many changes at once I still suggest to wait until the PR has been merged.

Actions #4

Updated by okurz about 2 months ago

  • Subject changed from [easy][beginner] WebUI: No error message when putting invalid characters in machines/testsuites settings to [easy][beginner] WebUI: No error message when putting invalid characters in machines/testsuites settings size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #5

Updated by dheidler about 2 months ago

  • Status changed from Workable to In Progress
  • Assignee set to dheidler
Actions #6

Updated by openqa_review about 2 months ago

  • Due date set to 2024-10-23

Setting due date based on mean cycle time of SUSE QE Tools

Actions #7

Updated by dheidler about 1 month ago

  • Status changed from In Progress to Feedback
Actions #8

Updated by okurz about 1 month ago

  • Status changed from Feedback to In Progress
Actions #9

Updated by okurz about 1 month ago

  • Parent task set to #154771
Actions #10

Updated by dheidler about 1 month ago

  • Status changed from In Progress to Feedback
Actions #11

Updated by dheidler about 1 month ago

  • Status changed from Feedback to Resolved
Actions #12

Updated by okurz about 1 month ago

  • Due date deleted (2024-10-23)
Actions

Also available in: Atom PDF