[ZBX-10517] Cannot insert an empty row/column into the screen Created: 2016 Mar 10  Updated: 2017 May 30  Resolved: 2016 Mar 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.0.1
Fix Version/s: 3.0.2rc1, 3.2.0alpha1

Type: Incident report Priority: Major
Reporter: Alexander Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: screenitems, screens
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-7241 Possible to create screen larger than... Closed

 Description   

First issue:

There is an error message if moving all screen items into left side or down:

Screen "Zabbix server" cell X - 0 Y - 1 is already taken. [screenedit.php:250 ? addScreenRow() ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CScreen->update() ? CScreen->updateReal() ? CScreen->replaceItems() ? CScreenItem->update() ? CScreenItem->validateUpdate() ? CScreenItem->checkDuplicateResourceInCell() ? CApiService::exception() in include/classes/api/services/CScreenItem.php:965]

It is easy to reproduce it with this API request:

{
    "screenid" : 16,
    "vsize" : 3,
    "screenitems" : [
        {
            "screenitemid" : 46,
            "screenid" : 16,
            "resourcetype" : 0,
            "resourceid" : 525,
            "width" : 400,
            "height" : 100,
            "x" : 1,
            "y" : 2,
            "colspan" : 1,
            "rowspan" : 1,
            "elements" : 0,
            "valign" : 0,
            "halign" : 0,
            "style" : 0,
            "url" : "",
            "dynamic" : 0,
            "sort_triggers" : 0,
            "application" : "",
            "max_columns" : 3
        },  
        {
            "screenitemid" : 45,
            "screenid" : 16, 
            "resourcetype" : 0,
            "resourceid" : 524,
            "width" : 400, 
            "height" : 156,
            "x" : 0, 
            "y" : 2, 
            "colspan" : 1,
            "rowspan" : 1,
            "elements" : 0,
            "valign" : 0,
            "halign" : 0,
            "style" : 0,
            "url" : "",
            "dynamic" : 0,
            "sort_triggers" : 0,
            "application" : "",
            "max_columns" : 3
        },  
        {
            "screenitemid" : 44,
            "screenid" : 16, 
            "resourcetype" : 2,
            "resourceid" : 1,
            "width" : 500,
            "height" : 100,
            "x" : 0,
            "y" : 1,
            "colspan" : 2,
            "rowspan" : 1,
            "elements" : 0,
            "valign" : 0,
            "halign" : 0,
            "style" : 0,
            "url" : "",
            "dynamic" : 0,
            "sort_triggers" : 0,
            "application" : "",
            "max_columns" : 3
        }
    ]
}

Second issue:

It is possible to set hsize/vsize to zero via API



 Comments   
Comment by richlv [ 2016 Mar 10 ]

second issue is a duplicate of (19) in ZBX-3783 (which links to an issue with this comment from 2014)

Comment by Alexander Vladishev [ 2016 Mar 11 ]

(1) Second issue was fixed under ZBX-10318 in r58953 (svn://svn.zabbix.com/branches/dev/ZBX-10318)

sasha Tested under ZBX-10318 by iivs. CLOSED

Comment by Alexander Vladishev [ 2016 Mar 11 ]

(2) First issue was fixed under ZBX-10318 in r58956 (svn://svn.zabbix.com/branches/dev/ZBX-10318)

sasha Tested under ZBX-10318 by iivs. CLOSED

Comment by Alexander Vladishev [ 2016 Mar 11 ]

(3) Documentation must be updated

sasha RESOLVED

iivs please review my changes and then pass this ZBX to martins-v for language review.

martins-v Reviewed, with some grammar fixes. Can be closed, I think.

sasha Thank you! CLOSED

Comment by Alexander Vladishev [ 2016 Mar 15 ]

Fixed in pre-3.0.2rc1 r58996 and pre-3.1.0 (trunk) r58995.

Generated at Fri Apr 26 00:25:20 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.