[ZBX-24720] Leading and trailing spaces are not trimmed for When active field in media mapping (LDAP / SAML) Created: 2024 Jun 25  Updated: 2025 Mar 19

Status: READY TO DEVELOP
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 7.0.0, 7.2.0alpha1
Fix Version/s: 7.0.12rc1, 7.2.6rc1, 7.4.0beta1 (master)

Type: Problem report Priority: Trivial
Reporter: Nikita Gogolevs Assignee: Gregory Chalenko
Resolution: Unresolved Votes: 0
Labels: LDAP, SAML, mapping, mediatypes, spaces, timeperiod, trim
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File trim-time-period-mediamapping.png    
Team: Team C
Sprint: Technical backlog
Story Points: 0.125

 Description   

Steps to reproduce:

  1. Open: Users -> Authentication -> LDAP
  2. Enable LDAP
  3. Click Add LDAP server
  4. Check the checkbox Configure JIT provisioning
  5. Click Add Media type mapping
  6. Fill mandatory name and attribute fields
  7. Add leading / trailing spaces for the default value of the "When active" field
  8. Click Add media mapping

Result:
Cannot add media mapping due to issue: Invalid media type mapping configuration.
Incorrect value for field "period": a time period is expected.

See screenshot:

Expected:
Trailing and leading spaces should be trimmed for "When active" field, similar as it is working for user configuration.


Generated at Fri Apr 04 16:53:46 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.