[ZBX-21157] Warning message overlays error message when host is cloned. Created: 2022 Jun 02  Updated: 2024 Apr 10  Resolved: 2022 Jul 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.5, 6.0.6rc1, 6.2.0rc1
Fix Version/s: 6.0.7rc1, 6.2.1rc1, 6.4.0alpha1, 6.4 (plan)

Type: Problem report Priority: Trivial
Reporter: Tomass Olups (Inactive) Assignee: Andrejs Griščenko
Resolution: Fixed Votes: 0
Labels: cloning, errormessage, host, lld, macros, msg-warning
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File discovery.txt     PNG File pic.png     GIF File vid.gif     File zbx_export_hosts (7).yaml     File zbx_export_templates (1).yaml    
Team: Team B
Sprint: Sprint 89 (Jun 2022), Sprint 90 (Jul 2022)
Story Points: 0.25

 Description   

Steps to reproduce:

  1. Import attached host and template;
  2. Copy the first three macros from the template and add them as "Secret text";
  3. Create Discovery Rule( type Zabbix agent, key: vfs.file.contents[ PATH TO THIS FILE discovery.txt]
  4. Create host prototype with name :
    host_{#KEY}
  1. Run Zabbix server;
  2. Observe when new hosts are created;
  3. Clone or full clone one of the discovery created hosts;
  4. Observe and do not close warning:"The cloned host contains user-defined macros with type "Secret text". The value and type of these macros were reset."
  5. Got to the "Macros" section and remove empty macros;
  6. Go to the "Inherited and host macros" section;
  7. Choose some template macros with secret text and press "Change"
  8. Go back to the "Host Macros" sections and press the "Add" button;
  9. Change browsers resolution lower than 1080p;
  10. Observe additional error message.

Result:

Expected
The warning message doesn't overlay the error message.



 Comments   
Comment by Vladimir Stepanov (Inactive) [ 2022 Jun 08 ]

Hi!
I couldn't reproduce your case on both versions: 6.05 and 6.2. One more thing, is it impossible to create host prototype as

 

host_[{#KEY}]

 

   I get an error: Invalid parameter "/1/host": invalid host name.
I used host_{#KEY} instead of host_{#KEY} but I could get hosts from discovery.txt.
Can you repeat everythimg once again on your side?

 

Comment by Andrejs Griščenko [ 2022 Jun 27 ]

Resolved in development branch feature/ZBX-21157-6.0.

Comment by Andrejs Griščenko [ 2022 Jul 11 ]

Fixed in:

Generated at Thu Apr 03 16:14:45 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.