[ZBX-10369] update of screen size with 'screenitems' option unexpectedly deletes screen item Created: 2016 Feb 10  Updated: 2017 May 30  Resolved: 2016 Mar 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 2.2.11, 2.4.7, 3.0.0rc1
Fix Version/s: 2.2.12rc1, 2.4.8rc1, 3.0.2rc1, 3.2.0alpha1

Type: Incident report Priority: Major
Reporter: vitalijs.cemeris (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: screens, validation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Reproduce:
Create screen with 2 columns and add screen item to last column.
Now update screen with API screen.update method

{
"screenid": "27",
"hsize": 1,
"screenitems": [
{
"screenitemid": "140",
"screenid": "27",
"resourcetype": "0",
"resourceid": "550",
"width": "500",
"height": "100",
"x": "0",
"y": "0",
"colspan": "1",
"rowspan": "1",
"elements": "0",
"valign": "0",
"halign": "0",
"style": "0",
"url": "",
"dynamic": "0",
"sort_triggers": "0",
"application": "",
"max_columns": "3"
}
]
}

keep screen 'hsize' and screenitem 'x' as in example.

Notice:
screenitem is deleted



 Comments   
Comment by Gunars Pujats (Inactive) [ 2016 Feb 16 ]

(1) No translation strings changed.

oleg.egorov CLOSED

Comment by Gunars Pujats (Inactive) [ 2016 Feb 16 ]

RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-10369

Comment by Oleg Egorov (Inactive) [ 2016 Feb 17 ]

(2) As was been discussed, please improve screen update and updateReal functions

  • Remove return from "updateReal".
  • Revert:
    $screens = $this->updateReal($screens);

gunarspujats RESOLVED in r58532.

oleg.egorov CLOSED

Comment by Oleg Egorov (Inactive) [ 2016 Feb 25 ]

TESTED

Comment by Gunars Pujats (Inactive) [ 2016 Mar 03 ]

Fixed in:

  • pre-2.2.12rc1 r58820
  • pre-2.4.8rc1 r58821
  • pre-3.0.2rc1 r58822
  • pre-3.1.0 (trunk) r58823
Comment by Gunars Pujats (Inactive) [ 2016 Mar 03 ]

(3) API documentation:

sasha Thanks! CLOSED

Generated at Fri Apr 26 09:58:52 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.