Skip to content

Handle unexpected leading/trailing spaces in the Template/ISO status field #11324

@Yuliia7-1

Description

@Yuliia7-1

problem

I encountered a case where the status field contained unexpected leading spaces:
" HTTP Server returned 404 (expected 200 OK) " instead of "HTTP Server returned 404 (expected 200 OK)".

This caused issues during sorting and filtering, since the extra space makes the status string technically different.

Other similar cases with leading or trailing spaces may also occur.

versions

The ACS version is 4.19.1.1

The steps to reproduce the bug

  1. Register a Template/ISO with a URL that can return HTTP Server returned 404 (expected 200 OK).
  2. Check the status field.

What to do about it?

Strip whitespace from "failed" status fields of Template and ISO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions