[ZBX-22433] Trailing and leading spaces are not trimmed in multiple fields in Web scenario and web scenario step configuration Created: 2023 Feb 28  Updated: 2025 Jan 17  Resolved: 2024 Feb 01

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.0.45rc1, 5.0.32rc1, 6.0.15rc1, 6.2.9rc1, 6.4.0rc3
Fix Version/s: 6.0.27rc1, 6.4.12rc1, 7.0.0beta2, 7.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Sergejs Olonkins Assignee: Diana Dauksa
Resolution: Fixed Votes: 0
Labels: trailingspaces, trim, web-scenario
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File headers_order.gif     PNG File image-2023-03-01-11-11-48-317.png    
Issue Links:
Duplicate
is duplicated by ZBX-22191 Can't change web scenario headers order. Closed
Team: Team B
Sprint: Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), S2401
Story Points: 0.5

 Description   

Problem description: Trailing and lieading spaces are not trimmed in Name => Value pair fields in Web scenario and Web scenario step configuration forms. List of such fields:
Web scenario => Variables (trailing/leading spaces not trimmed in Value field)
Web scenario => Headers
Web scenario step => Query fields
Web scenario step => Post fields
Web scenario step => Variables (trailing/leading spaces not trimmed in Value field)
Web scenario step => Headers

Steps to reproduce:

  1. Open the list of web scenarios of any host
  2. Click on the "Create web scenario" button
  3. Fill in Web scenario name and add values with trailing and leading spaces in the following fields:
    Web scenario => Variables => Name
    Web scenario => Variables => Value
    Web scenario => Headers => Name
    Web scenario => Headers => Value
  4. Open "Steps" tab and press "Add" button in "Steps" field
  5. In the opened dialog populate Step name and URL and add values with trailing and leading spaces in the following fields:
    Web scenario step => Query fields => Name
    Web scenario step => Query fields => Value
    Web scenario step => Post fields => Name
    Web scenario step => Post fields => Value
    Web scenario step => Variables => Name
    Web scenario step => Variables => Value
    Web scenario step => Headers => Name
    Web scenario step => Headers => Value
  6. Save step configuration
  7. Save Web scenario configuration
  8. Open created web scenario and check trailing and leading spaces in all of the above mentioned fields.

Result: trailing and leading spaces were trimmed only in Variables => Name field in Web scenario and Web scenario step configuration forms
Expected: suggestion is to trim trailing and leading spaces in all of the above mentioned fields.



 Comments   
Comment by Diana Dauksa [ 2023 Sep 05 ]

Fixed in development branches:

Comment by Diana Dauksa [ 2024 Jan 31 ]

Fixed in:

Generated at Mon Apr 28 23:53:32 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.