Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008762opensim[REGION] Script Functionspublic2020-09-05 08:362020-09-06 19:05
ReporterKristen Mynx 
Assigned ToKristen Mynx 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformUnix/Mono and Win/.NETOSWindows or UnixOS Versionany
Product Version 
Target VersionFixed in Version 
Summary0008762: 0.9.2.0 dev master http-in (http_request event) not working correctly.
Descriptionhttp_request events will not respond to any url other than the given url path, anything added to the url path causes a 404. According to the specification, you can add more to the url path (such as URL + "test") and http_request will return "/test" in the "x-path-info" in llGetHTTPHeader(). In addition, "x-query-string" is not correct. Using a query string of "?a=b&c=d" instead returns "a = b&c = d" (spaces around the equals).
Either of these issues are incompatible with standard functioning of these features. I wasn't sure what Severity to pick. It is major to me :)
Steps To ReproduceRez a box
New Script
Copy Paste the script below
Save
Copy the URL given to a browser and add to the end of the path "test", example: http://xx.xx.xx.xx:8004/lslhttp/a8685724-5c77-4f1e-b47e-86c825e2c968/test [^]
You'll get a 404 (OOps...)
Do it again, but with a simple query string example: http://xx.xx.xx.xx:8004/lslhttp/a8685724-5c77-4f1e-b47e-86c825e2c968/?a=b&c=d [^]
The script will report
[08:04] Object: path: '/'
[08:04] Object: qs: 'a = b&c = d'
Note the spaces around the =
Additional Information
// Test Script to demonstrate the http-in issue
default
{
    state_entry()
    {
        llRequestURL();
    }
 
    http_request(key id, string method, string body)
    {
        if (method == URL_REQUEST_GRANTED)
        {
            llSay(0,"URL: " + body);
        }
        else if (method == "GET")
        {
            string path = llGetHTTPHeader(id, "x-path-info");
            string query = llGetHTTPHeader(id, "x-query-string");
            llOwnerSay("path: '" + path + "'");
            llOwnerSay("qs: '" + query + "'");
            llHTTPResponse(id,200,"Hello World!");
        }
    }
}
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script EngineXEngine, YEngine
EnvironmentMono / Linux64, .NET / Windows64
Mono VersionNone
ViewerAny
Attached Files

- Relationships

-  Notes
(0036779)
BillBlight (developer)
2020-09-05 08:44
edited on: 2020-09-05 09:58

REDACTED DUE TO MY OWN SCREW UP

(0036780)
UbitUmarov (administrator)
2020-09-05 11:13

ty
should be a bit better now
(0036783)
Waki Janus (reporter)
2020-09-05 23:12

You can also add MacOS to the OS this is affecting.
(0036784)
BillBlight (developer)
2020-09-05 23:21

Did you try the latest dev master ... Ubit fixed this issue ....
(0036785)
UbitUmarov (administrator)
2020-09-06 08:35

had forgotten the case ../test/other/...
(0036786)
JeffKelley (reporter)
2020-09-06 10:37

In commit 2020-09-06-649e447

http://grid.pescadoo.net:8010/lslhttp/2ef13bc0-d502-4101-80d9-9784ab1ec662/extra/path [^]
[10:36] MANTIS 8762: path: '/extra/path'
[10:36] MANTIS 8762: qs: ''

http://grid.pescadoo.net:8010/lslhttp/2ef13bc0-d502-4101-80d9-9784ab1ec662/extra/path/?a=foo&b=bar [^]
[10:36] MANTIS 8762: path: '/extra/path/'
[10:36] MANTIS 8762: qs: 'a=foo&b=bar'
(0036787)
Kristen Mynx (reporter)
2020-09-06 19:01

649e447
My tests show its working!
Thank you!
Quick turnaround.
(0036788)
Kristen Mynx (reporter)
2020-09-06 19:05

Works correctly in
649e44792bc91c3cff2dc1f30b525e0fb93e97d9
Sun Sep 6 16:33:07 2020 +0100

- Issue History
Date Modified Username Field Change
2020-09-05 08:36 Kristen Mynx New Issue
2020-09-05 08:44 BillBlight Note Added: 0036779
2020-09-05 08:45 BillBlight Note Edited: 0036779 View Revisions
2020-09-05 08:46 BillBlight Note Edited: 0036779 View Revisions
2020-09-05 08:47 BillBlight Note Edited: 0036779 View Revisions
2020-09-05 08:50 BillBlight Note Edited: 0036779 View Revisions
2020-09-05 08:50 BillBlight Note Edited: 0036779 View Revisions
2020-09-05 08:52 BillBlight Note Edited: 0036779 View Revisions
2020-09-05 08:54 BillBlight Note Edited: 0036779 View Revisions
2020-09-05 09:20 BillBlight Note Edited: 0036779 View Revisions
2020-09-05 09:37 aiaustin Summary 0.9.2.0 release http-in (http_request event) not working correctly. => 0.9.2.0 dev master http-in (http_request event) not working correctly.
2020-09-05 09:37 aiaustin Additional Information Updated View Revisions
2020-09-05 09:58 BillBlight Note Edited: 0036779 View Revisions
2020-09-05 11:13 UbitUmarov Note Added: 0036780
2020-09-05 23:12 Waki Janus Note Added: 0036783
2020-09-05 23:21 BillBlight Note Added: 0036784
2020-09-06 08:35 UbitUmarov Note Added: 0036785
2020-09-06 10:37 JeffKelley Note Added: 0036786
2020-09-06 19:01 Kristen Mynx Note Added: 0036787
2020-09-06 19:05 Kristen Mynx Note Added: 0036788
2020-09-06 19:05 Kristen Mynx Status new => resolved
2020-09-06 19:05 Kristen Mynx Resolution open => fixed
2020-09-06 19:05 Kristen Mynx Assigned To => Kristen Mynx


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker