[ZBX-25606] Screenshots with itemids above int32 don't appear Created: 2024 Nov 25  Updated: 2025 Jul 07

Status: Resolved
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 7.0.6
Fix Version/s: 6.0.41rc1, 7.0.17rc1, 7.2.11rc1, 7.4.1rc1, 8.0.0alpha1 (master)

Type: Problem report Priority: Minor
Reporter: Pedro Ceriotti Trindade Assignee: Ivo Kurzemnieks
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 213.75h
Original Estimate: Not Specified
Environment:

zabbix server mysql-7.0.6 running on RHEL 9.5
mysql 8.0.37 running on RHEL 9.4
docker selenium running on rhel 9.5 (podman)


Attachments: PNG File image-2025-06-19-09-56-18-846.png     PNG File screenshot-1.png     PNG File screenshot-10.png     PNG File screenshot-2.png     PNG File screenshot-3.png     PNG File screenshot-4.png     PNG File screenshot-5.png     PNG File screenshot-6.png     PNG File screenshot-7.png     PNG File screenshot-8.png     PNG File screenshot-9.png     PNG File zabbix_screenshot_bug.png    
Issue Links:
Duplicate
is duplicated by ZBX-26192 Error when creating widgets for text-... Closed
is duplicated by ZBX-26193 Error when creating widgets for text-... Closed
is duplicated by ZBX-26194 Error when creating widgets for text-... Closed
Sub-task
Team: Team B
Sprint: Prev.Sprint, S25-W8/9, S25-W10/11, S25-W12/13, S25-W14/15, S25-W16/17, S25-W20/21, S25-W22/23, S25-W24/25, S25-W26/27
Story Points: 2

 Description   

Steps to reproduce:

  1. Have items with itemid above int32 (2147483647)
  2. Use Zabbix browser monitor template (https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/website_browser?at=refs%2Fheads%2Frelease%2F7.0) 
  3. Navigate to the default template dashboard
  4. Screenshots won't appear and console logs will display : "Incorrect value "{ITEMID_VALUE}" for "itemid" field."

Result:

Screenshots won't appear as in the appended image.

**

It seems related with widgets/itemhistory/actions/ValueCheck.php it expects an int32 but if the itemid is above it will display this error message in console log.



 Comments   
Comment by Alexander Vladishev [ 2024 Nov 26 ]

Thank you for reporting it! We will fix it.

Comment by Alexander Vladishev [ 2024 Nov 26 ]

Similar places by versions:

  • release/6.0:
    • ui/app/controllers/CControllerPopupItemTestEdit.php
      • 'valuemapid' => 'int32'
  • release/7.0:
    • ui/widgets/itemhistory/actions/ImageValueGet.php
      • 'itemid' => 'int32|required'
    • ui/widgets/itemhistory/actions/ColumnEdit.php
      • 'itemid' => 'int32'
    • ui/widgets/itemhistory/actions/ValueCheck.php
      • 'itemid' => 'int32|required'
    • ui/widgets/itemhistory/actions/BinaryValueGet.php
      • 'itemid' => 'int32|required'
    • ui/app/controllers/CControllerUsergroupUpdate.php
      • 'mfaid' => 'int32'
    • ui/app/controllers/CControllerUsergroupCreate.php
      • 'mfaid' => 'int32'
    • ui/app/controllers/CControllerPopupItemTestEdit.php
      • 'valuemapid' => 'int32'
  • master:
    • ui/widgets/tophosts/actions/ImageValueGet.php
      • 'itemid' => 'int32|required'
    • ui/widgets/tophosts/actions/ValueCheck.php
      • 'itemid' => 'int32|required'
    • ui/widgets/tophosts/actions/BinaryValueGet.php
      • 'itemid' =>'int32|required'
    • ui/widgets/itemhistory/actions/ImageValueGet.php
      • 'itemid' => 'int32|required'
    • ui/widgets/itemhistory/actions/ColumnEdit.php
      • 'itemid' => 'int32'
    • ui/widgets/itemhistory/actions/ValueCheck.php
      • 'itemid' => 'int32|required'
    • ui/widgets/itemhistory/actions/BinaryValueGet.php
      • 'itemid' => 'int32|required'
    • ui/app/controllers/CControllerUsergroupUpdate.php
      • 'mfaid' => 'int32'
    • ui/app/controllers/CControllerUsergroupCreate.php
      • 'mfaid' => 'int32'
    • ui/app/controllers/CControllerPopupItemTestEdit.php
      • 'valuemapid' => 'int32'
Comment by Robert Gontarski [ 2025 Feb 24 ]

Implemented in development branches

Generated at Wed Jul 16 10:06:33 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.