Custom Query (126 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (67 - 69 of 126)

Ticket Resolution Summary Owner Reporter
#122 fixed GetLog function of WebAPI results in ArgumentException Alloc theit8514
Description I'm unable to view the logs on the web frontend due to an exception in GetLog. The issue stems from LogBuffer.GetRange. After review of the code on svn, the GetLog handler is hard coded to 50 for _count but the MAX_ENTRIES on the LogBuffer is set to 30. Since LogBuffer.GetRange does not check upper bounds, GetLog can never retrieve the logs.

Options:
1. Update GetLog.HandleRequest to utilize LogBuffer.MAX_ENTRIES (make public)
2. Update LogBuffer.GetRange to check if we can pull _count items based on _start and listOffset, and reset _count to a sane value

{{{
2015-12-27T03:20:22 97520.419 ERR Error in ApiHandler.HandleRequest(): Handler getlog threw an exception:
2015-12-27T03:20:22 97520.420 EXC index and count exceed length of list
ArgumentException: index and count exceed length of list
at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].CheckRange (Int32 idx, Int32 count) [0x00000] in <filename unknown>:0
at System.Collections.Generic.List`1[AllocsFixes.NetConnections.Servers.Web.LogBuffer+LogEntry].GetRange (Int32 index, Int32 count) [0x00000] in <filename unknown>:0
at AllocsFixes.NetConnections.Servers.Web.LogBuffer.GetRange (System.Int32& _start, Int32 _count, System.Int32& _end) [0x00000] in <filename unknown>:0
at AllocsFixes.NetConnections.Servers.Web.API.GetLog.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel)[0x00000] in <filename unknown>:0
at AllocsFixes.NetConnections.Servers.Web.Handlers.ApiHandler.HandleRequest (System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse resp, AllocsFixes.NetConnections.Servers.Web.WebConnection user, Int32 permissionLevel) [0x00000] in <filename unknown>:0
}}}
#123 fixed Support per instance hooks Alloc Alloc
Description In addition to checking for global hooks in BASE/hooks also check in BASE/instances/<inst>/hooks/.
Pass same parameters as this way a hook would work on both global level and per instance (if it is written in a way to support multiple instances at all).
#124 fixed Send transparent tile instead of 404 on missing map chunks Alloc Alloc
Description Currently if the browser requests a map chunk that's not been rendered the server will return a 404. Could instead return a simple all transparent tile.
Note: See TracQuery for help on using queries.