Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007143opensim[REGION] Scripting Enginepublic2014-04-30 11:102014-07-29 13:43
Reporterkcozens 
Assigned Tokcozens 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Versionmaster (dev code) 
Summary0007143: llHTTP_Request gets no returned data after a state change
DescriptionYou can send data to a webserver using llHTTP_Request and receive data as long as the request is made in the same state as the http_response event handler. If you change to a different state in the script containing an http_response event handler no results are received.
Steps To ReproducePlace the attached PHP file on a webserver. Put the LSL script in to a prim. Update the URL in the LSL script to point to the PHP file on the webserver. Touch the prim to issue a request to the PHP file and get a response. Comment out the change to state_wait and the script will receive the data from the PHP file.
Additional InformationThe LSL scripts and PHP files I have which fetch data from a website used to work back in the OpenSim 0.6.9 days but I only recently pulled them out again and tested them in 0.7.6-post-fixes and git master versions of OpenSim.
TagsNo tags attached.
Git Revision or version number3f76f721372496011efc9328783f9f446b91a92b
Run ModeStandalone (1 Region)
Physics EngineBulletSim
EnvironmentMono / Linux32
Mono Version2.10
Viewer
Attached Files? file icon http_request_test.lsl [^] (1,463 bytes) 2014-04-30 11:10
? file icon HandleSenderFunc.php [^] (101 bytes) 2014-04-30 11:11

- Relationships

-  Notes
(0025937)
kcozens (administrator)
2014-04-30 15:15

This issue has been fixed by the following two commits:

commit 7c121a2acc45d29bfc6f839083231ee0b2f96886
Author: Melanie <melanie@t-data.com>
Date: Wed Apr 30 20:56:49 2014 +0100

    Change XEngine to call StateChange rather than RemoveScript on state changes

commit f0eeb47262c116b893644ee532bebb4dd52dec77
Author: Melanie <melanie@t-data.com>
Date: Wed Apr 30 20:54:34 2014 +0100

    Add the "StateChange" function to the async comand manager to differentiate
    between state changes and script exit/reset.

- Issue History
Date Modified Username Field Change
2014-04-30 11:10 kcozens New Issue
2014-04-30 11:10 kcozens File Added: http_request_test.lsl
2014-04-30 11:11 kcozens File Added: HandleSenderFunc.php
2014-04-30 11:20 kcozens Git Revision or version number You can send data to a webserver using llHTTP_Request and receive data as long as the request is made in the same state as the http_response event handler. If you change to a different state in the script containing an http_response event handler no resul => 3f76f721372496011efc9328783f9f446b91a92b
2014-04-30 11:21 kcozens Summary 3f76f721372496011efc9328783f9f446b91a92b => llHTTP_Request gets no returned data after a state change
2014-04-30 11:21 kcozens Steps to Reproduce Updated View Revisions
2014-04-30 11:21 kcozens Additional Information Updated View Revisions
2014-04-30 15:15 kcozens Note Added: 0025937
2014-04-30 15:15 kcozens Status new => resolved
2014-04-30 15:15 kcozens Fixed in Version => master (dev code)
2014-04-30 15:15 kcozens Resolution open => fixed
2014-04-30 15:15 kcozens Assigned To => kcozens
2014-07-29 13:43 chi11ken Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker