[ZBX-6612] When import an image its size checking is broken. Created: 2013 May 17  Updated: 2017 May 30  Resolved: 2013 May 23

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.6
Fix Version/s: 2.0.7, 2.1.0

Type: Incident report Priority: Trivial
Reporter: Oleg Ivanivskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: appliance, images, import
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

VMware Zabbix 2.0.6 applience downloaded from zabbix.com


Attachments: JPEG File Zabbix 2.0.6 Appliance_ Configuration of images.jpg    

 Description   

1) if jpg or png file size is less than 1 MB and 1 000 000 in bytes file upload succeeds.
2) if jpg or png file size is about 1 MB (for example, 0.99 MB or 1.039.133 in bytes) I get an error from screenshot.
3) if jpg or png file size is more than 1 MB (for example, 1.02 MB) I get the error "Image size must be less than 1MB" (as it should be).



 Comments   
Comment by Eduards Samersovs (Inactive) [ 2013 May 23 ]

In official Zabbix vmware appliance mysql configuration variable "max_allowed_packet" is 1M. This is equal with Frontend file limit 1M. But seems is too small for us, because this size is for total query, but not only for file itself. I think this variable in mysql configuration should be increased.

Comment by Oleg Ivanivskyi [ 2013 May 23 ]

MySQL 5.1.69. Increasing the "max allowed packet" variable solved this problem (file upload succeeds).
Thanks for the help.

Comment by Martins Valkovskis [ 2013 May 23 ]

A note regarding the max_allowed_packet value added to:

https://www.zabbix.com/documentation/2.0/manual/web_interface/frontend_sections/administration/general#images
https://www.zabbix.com/documentation/2.2/manual/web_interface/frontend_sections/administration/general#images

<richlv> i also linked to mysql docs for version 5.5 about this param

<sasha> CLOSED

Comment by richlv [ 2013 May 23 ]

thanks for spotting this. max_allowed_packet will be increased to 2mb for 2.0.7 appliance build

Generated at Sat Apr 20 17:16:24 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.