[ZBX-3551] image export to xml broken with postgresql Created: 2011 Feb 21 Updated: 2017 May 30 Resolved: 2011 Nov 03 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 1.8.8, 1.9.1 (alpha), 1.9.6 (beta) |
Fix Version/s: | 2.0.0 |
Type: | Incident report | Priority: | Blocker |
Reporter: | Sergey Syreskin | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | maps, xml | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Centos 5.5 + PostgreSQL 8.4 |
Attachments: | zbx_maps_export.xml zbx_maps_export.xml |
Description |
Error while trying to import a network map in 1.9.2 that was previously exported from Zabbix 1.8.5. Frontend error output:
|
Comments |
Comment by Alexey Fukalov [ 2011 Oct 03 ] |
Could you please try to reproduce this error in latest trunk. If it still there, please add more description about map which is imported. |
Comment by Alexey Fukalov [ 2011 Oct 11 ] |
If error is reproduced again, please reopen this issue. |
Comment by Sergey Syreskin [ 2011 Oct 13 ] |
I have exported a map from 1.8.9rc1.x-22144 and then imported it to 1.9.7.x-22144. When I try to open the imported map, I get JavaScript message window with an error "Map image update failed". I think the problem is in incorrect importing of map icons. Now for how I created the map: Configuration->Network Maps->Create->enter name "Test map" |
Comment by richlv [ 2011 Oct 13 ] |
can you attach the map xml for testing ? |
Comment by Sergey Syreskin [ 2011 Oct 13 ] |
Added map xml. |
Comment by Sergey Syreskin [ 2011 Oct 13 ] |
I have just noticed that map exported from 1.8.9 is incorrectly imported on the same version 1.8.9. |
Comment by richlv [ 2011 Oct 17 ] |
this is caused by the image in the xml. the thing in there isn't a proper png for some reason (both imported & base64-decoded versions fail to load) |
Comment by richlv [ 2011 Oct 17 ] |
ok, so looks like image export with pgsql is broken (works fine with mysql). with mysql we get proper binary data, with pgsql - "\211PNG\015\012\032\012\000\000\000" ... |
Comment by Sergey Syreskin [ 2011 Oct 18 ] |
It certainly worked earlier, in 1.8.3 or something. |
Comment by richlv [ 2011 Oct 18 ] |
hmm. would it be possible for you to set up 1.8.3 frontend in parallel against the same database and try exporting then ? for me, unless i messed up, export is still broken.... |
Comment by Sergey Syreskin [ 2011 Oct 18 ] |
1.8.3 but another database setup. |
Comment by Sergey Syreskin [ 2011 Oct 18 ] |
I have just noticed, that in 1.8.3 in the import form all checkboxes are unchecked by default, while in 1.8.9 all of them are checked. When I check all checkboxes in "Add missing" column, map export-import goes all right, but when I also check all checkboxes in "Update existing" column, map icons get corrupted after import. |
Comment by richlv [ 2011 Oct 18 ] |
ok, so it is broken for you with 1.8.3 as well, you just didn't notice because you did not import new images or override old ones before |
Comment by Sergey Syreskin [ 2011 Oct 18 ] |
The same is true for 1.8.9. To sum up, map icons become corrupt only when the "Icon" checkbox in the first ("Update existing") column is checked in the map import form. |
Comment by Sergey Syreskin [ 2011 Oct 18 ] |
Yes, it is broken in 1.8.3 as well. |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 02 ] |
RESOLVED. |
Comment by Sergey Syreskin [ 2011 Nov 02 ] |
Thanks, guys! |
Comment by Alexey Fukalov [ 2011 Nov 03 ] |
(1) [GUI] Fixed map export in 1.8. RESOLVED. <Vedmak> i moved unescape to api review please |
Comment by Igor Danoshaites (Inactive) [ 2011 Nov 10 ] |
<igor> When using this (2) Can not add elements to the map, after clicking on the "+" icon element selection form does not appear and map disappear from the screen (3) After importing map with background image inside it, appears the following error: Undefined index: images [include\export.inc.php:573] But appropriate map with background image inside it has been created. <igor> Yes, you are right, image "Hub" was broken. Now all is fine. CLOSED. |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 11 ] |
Merged to /branches/1.8 revision 23115. CLOSED. |