secondlife / jira-archive

2 stars 0 forks source link

[BUG-202688] PRIM_MEDIA_HOME_URL causes background requests on every prim edit #3006

Open sl-service-account opened 6 years ago

sl-service-account commented 6 years ago

Steps to Reproduce

Created a script with a prim media setter.

Actual Behavior

When setting the home url of a prim's media, the server receives a request every time the prim is manipulated/moved/edited, regardless of whether the current prim media is the same url or not, or even visible/active.

Expected Behavior

Requests to the server should happen only when the media is displayed on the prim and rendered.

Other information

A script for testing. After applying script, select/move/morph/etc in edit mode and see the request messages appear.


default
{
    state_entry()
    {
        llRequestURL();
    }

    http_request(key id, string method, string body)
    {
        if (method == URL_REQUEST_GRANTED)
        { 
            string url = body;
            llSetPrimMediaParams(0, [PRIM_MEDIA_HOME_URL, url]); 
        } else {
            llOwnerSay("Request made");
        }
    }
}
Original Jira Fields | Field | Value | | ------------- | ------------- | | Issue | BUG-202688 | | Summary | PRIM_MEDIA_HOME_URL causes background requests on every prim edit | | Type | Bug | | Priority | Unset | | Status | Accepted | | Resolution | Accepted | | Reporter | Darwin Recreant (darwin.recreant) | | Created at | 2017-12-02T13:19:41Z | | Updated at | 2017-12-18T23:21:00Z | ``` { 'Business Unit': ['Platform'], 'Date of First Response': '2017-12-03T11:00:46.894-0600', "Is there anything you'd like to add?": 'A script for testing. After applying script, select/move/morph/etc in edit mode and see the request messages appear. \r\n\r\ndefault\r\n{\r\n state_entry()\r\n {\r\n llRequestURL();\r\n }\r\n \r\n \r\n http_request(key id, string method, string body)\r\n {\r\n if (method == URL_REQUEST_GRANTED)\r\n { \r\n string url = body;\r\n llSetPrimMediaParams(0, [PRIM_MEDIA_HOME_URL, url]); \r\n } else {\r\n llOwnerSay("Request made");\r\n }\r\n }\r\n}\r\n', 'ReOpened Count': 0.0, 'Severity': 'Unset', 'System': 'SL Viewer', 'Target Viewer Version': 'viewer-development', 'What just happened?': "When setting the home url of a prim's media, the server receives a request every time the prim is manipulated/moved/edited, regardless of whether the current prim media is the same url or not, or even visible/active.", 'What were you doing when it happened?': 'Created a script with a prim media setter.', 'What were you expecting to happen instead?': 'Requests to the server should happen only when the media is displayed on the prim and rendered.', } ```
sl-service-account commented 6 years ago

Whirly Fizzle commented at 2017-12-03T17:00:47Z

Also reproduces on default release: Second Life 5.0.9.329906 (Second Life Release)

sl-service-account commented 6 years ago

Kyle Linden commented at 2017-12-05T01:10:22Z

Confirmed repro in release Second Life 5.0.9.329906