Project

General

Profile

Actions

Bug #36904

closed

Uploading invalid datastream file while creating Tailoring File in Satellite WebUI should show some meaningful error message instead of 500 Internal Server Error

Added by Adam Ruzicka 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Description of problem:
The tailoring file creation fails when a invalid datastream file is uploaded which is a expected behavior. But a relevant meaningful message should get displayed to user instead of '500 Internal Server Error'

Steps to Reproduce:
1. Navigate to Foreman WebUI -> Hosts -> Tailoring Files -> New Tailoring File.
2. Enter the name and then browse and upload DataStream tailoring file which is not valid. Select the respective Organizations and Locations.
3. Hit submit.

Actual results: The Tailoring file cannot be created and it fails with below message.

Oops, we're sorry but something went wrong 500 Internal Server Error

Expected results: Some meaningful message like "Invalid Datastream tailoring file" should be shown on screen instead of failure with 500 Internal Server Error.

Actions #1

Updated by The Foreman Bot 7 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_openscap/pull/550 added
Actions #2

Updated by The Foreman Bot 7 months ago

  • Fixed in Releases foreman_openscap 5.2.0 added
Actions #3

Updated by Anonymous 7 months ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Adam Ruzicka 7 months ago

  • Fixed in Releases foreman_openscap-7.1.0 added
  • Fixed in Releases deleted (foreman_openscap 5.2.0)
Actions

Also available in: Atom PDF