Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008222opensim[REGION] OpenSim Corepublic2017-07-29 05:112017-07-31 01:37
Assigned ToGrumly57 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0008222: InvalidCastException in OpenSim.Framework.Servers.HttpServer.BaseHttpServer.DoHTTPGruntWork()
Descriptionif (responsedata.ContainsKey("headers"))
    Hashtable headerdata = (Hashtable)responsedata["headers"];

    foreach (string header in headerdata.Keys)
        response.AddHeader(header, (string)headerdata[header]);

Sometimes, the headerdata Hashtable contains a "Retry-After" entry.
The key is "Retry-After", and the Value is an actual boxed int instead of a string sometimes. So an exception is thrown when casting it as a string is attempted.

I suggest to change this to response.AddHeader(header, headerdata[header].ToString());
Steps To ReproduceThis happens when I "Refresh Texture" on some object inworld.
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region)
Physics EngineODE
Environment.NET / Windows64
Mono VersionNone
Attached Files

- Relationships

-  Notes
UbitUmarov (administrator)
2017-07-29 09:55

thx, changed on master

- Issue History
Date Modified Username Field Change
2017-07-29 05:11 Grumly57 New Issue
2017-07-29 09:55 UbitUmarov Note Added: 0032215
2017-07-29 13:42 Grumly57 Status new => resolved
2017-07-29 13:42 Grumly57 Resolution open => fixed
2017-07-29 13:42 Grumly57 Assigned To => Grumly57
2017-07-31 01:37 aiaustin Relationship added related to 0008224
2017-07-31 02:02 UbitUmarov Relationship deleted related to 0008224

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker