https://bugzilla.novell.com/show_bug.cgi?id=656725

https://bugzilla.novell.com/show_bug.cgi?id=656725#c0


           Summary: Exception thrown while enumerating headers
    Classification: Mono
           Product: Mono: Tools
           Version: SVN
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: tools
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7

On my site I read in the client IP address from the request headers and
occasionally I get a response which throws an exception while trying to get
this value from the request headers.

System.ArgumentOutOfRangeException: startIndex + length > this.length
Parameter name: length
  at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in
<filename unknown>:0
  at Mono.WebServer.FastCgi.WorkerRequest.ReformatHttpHeader (System.String
header) [0x00000] in <filename unknown>:0
  at Mono.WebServer.FastCgi.WorkerRequest.GetUnknownRequestHeaders () [0x00000]
in <filename unknown>:0
  at Mono.WebServer.FastCgi.WorkerRequest.GetUnknownRequestHeader
(System.String name) [0x00000] in <filename unknown>:0
  at System.Web.HeadersCollection.InternalGet (System.String name) [0x00000] in
<filename unknown>:0
  at System.Web.BaseParamsCollection.Get (System.String name) [0x00000] in
<filename unknown>:0
  at System.Collections.Specialized.NameValueCollection.get_Item (System.String
name) [0x00000] in <filename unknown>:0
  at mysite.Global.Application_Error (System.Object sender, System.EventArgs e)
[0x00000] in <filename unknown>:0

This is running on a fully updated Gentoo x64 installation, with current git
trunk of xsp as well as mono runtime.


Reproducible: Didn't try

Steps to Reproduce:
1.
2.
3.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to