[Mono-bugs] [Bug 81385][Maj] New - Problems with Request.ServerVariables

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Apr 16 10:08:14 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by informatique.internet at fiducial.fr.

http://bugzilla.ximian.com/show_bug.cgi?id=81385

--- shadow/81385	2007-04-16 10:08:14.000000000 -0400
+++ shadow/81385.tmp.30626	2007-04-16 10:08:14.000000000 -0400
@@ -0,0 +1,242 @@
+Bug#: 81385
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com                            
+ReportedBy: informatique.internet at fiducial.fr               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Problems with Request.ServerVariables
+
+Description of Problem:
+I think it's a regression due to the new lasy loading of ServerVariables
+I'm using the svn trunk mono version
+
+Steps to reproduce the problem:
+1. Try this aspx
+
+<%@ Page Language="C#" %>
+<Head>
+  <script language=CS runat=server>
+    void Page_Load(object sender, System.EventArgs e) 
+    {
+    		string http_post=Request.ServerVariables["HTTP_HOST"];
+     		foreach (string key in Request.ServerVariables.AllKeys)
+			{
+				Console.WriteLine(key +":"+Request.ServerVariables[key]);
+			}
+			Console.WriteLine("---------------");
+			Console.WriteLine("HTTP_HOST :"+http_post);
+    } 
+  </script>
+</Head>
+2. Run xsp
+
+3. Go to http://localhost:8080
+
+Actual Results:
+hubert at hublinux ~/Projects/testweb/testweb $ xsp
+xsp
+Listening on port: 8080 (non-secure)
+Listening on address: 0.0.0.0
+Root directory: /home/hubert/Projects/testweb/testweb
+Hit Return to stop the server.
+ALL_HTTP:HTTP_CACHE_CONTROL:max-age=0
+HTTP_CONNECTION:keep-alive
+HTTP_KEEP_ALIVE:300
+HTTP_ACCEPT:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
+HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
+HTTP_ACCEPT_ENCODING:gzip,deflate
+HTTP_ACCEPT_LANGUAGE:fr-fr,fr;q=0.8,en;q=0.5,en-us;q=0.3
+HTTP_COOKIE:ZM_AUTH_TOKEN=0_1785949a29debf592a1a77e7ac9ed201cd51d5e0_69643d33363a62326431643766622d623065312d346534392d623564362d6466643237663063376230333b6578703d31333a313230363638363631393231333b;
+VISITEUR=ID=12773e77-7a7a-412a-8c78-fb1a37f4bf47&DATE=16/04/2007
+13:36:13&MEMO_UIDPWD=False&UID=&PWD=; ASPSESSION=6A62D442FB5DFB940EDC4BB4
+HTTP_HOST:localhost:8080
+HTTP_USER_AGENT:Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8.1.3)
+Gecko/20070309 Firefox/2.0.0.3
+
+ALL_RAW:Cache-Control: max-age=0
+Connection: keep-alive
+Keep-Alive: 300
+Accept:
+text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
+Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
+Accept-Encoding: gzip,deflate
+Accept-Language: fr-fr,fr;q=0.8,en;q=0.5,en-us;q=0.3
+Cookie:
+ZM_AUTH_TOKEN=0_1785949a29debf592a1a77e7ac9ed201cd51d5e0_69643d33363a62326431643766622d623065312d346534392d623564362d6466643237663063376230333b6578703d31333a313230363638363631393231333b;
+VISITEUR=ID=12773e77-7a7a-412a-8c78-fb1a37f4bf47&DATE=16/04/2007
+13:36:13&MEMO_UIDPWD=False&UID=&PWD=; ASPSESSION=6A62D442FB5DFB940EDC4BB4
+Host: localhost:8080
+User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8.1.3)
+Gecko/20070309 Firefox/2.0.0.3
+
+APPL_MD_PATH:
+APPL_PHYSICAL_PATH:
+AUTH_TYPE:
+AUTH_USER:
+AUTH_PASSWORD:
+LOGON_USER:
+REMOTE_USER:
+CERT_COOKIE:
+CERT_FLAGS:
+CERT_ISSUER:
+CERT_KEYSIZE:
+CERT_SECRETKEYSIZE:
+CERT_SERIALNUMBER:
+CERT_SERVER_ISSUER:
+CERT_SERVER_SUBJECT:
+CERT_SUBJECT:
+CONTENT_TYPE:
+GATEWAY_INTERFACE:CGI/1.1
+HTTPS:off
+HTTPS_KEYSIZE:
+HTTPS_SECRETKEYSIZE:
+HTTPS_SERVER_ISSUER:
+HTTPS_SERVER_SUBJECT:
+INSTANCE_ID:
+INSTANCE_META_PATH:
+LOCAL_ADDR:127.0.0.1
+PATH_INFO:
+PATH_TRANSLATED:/home/hubert/Projects/testweb/testweb/index.aspx
+QUERY_STRING:
+REMOTE_ADDR:127.0.0.1
+REMOTE_HOST:127.0.0.1
+REMOTE_PORT:46319
+REQUEST_METHOD:GET
+SCRIPT_NAME:/index.aspx
+SERVER_NAME:localhost
+SERVER_PORT:8080
+SERVER_PORT_SECURE:0
+SERVER_PROTOCOL:HTTP/1.0
+SERVER_SOFTWARE:Mono.WebServer/0.1.0.0
+URL:/index.aspx
+HTTP_CACHE_CONTROL:max-age=0
+HTTP_CONNECTION:keep-alive
+HTTP_KEEP_ALIVE:300
+HTTP_ACCEPT:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
+HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
+HTTP_ACCEPT_ENCODING:gzip,deflate
+HTTP_ACCEPT_LANGUAGE:fr-fr,fr;q=0.8,en;q=0.5,en-us;q=0.3
+HTTP_COOKIE:ZM_AUTH_TOKEN=0_1785949a29debf592a1a77e7ac9ed201cd51d5e0_69643d33363a62326431643766622d623065312d346534392d623564362d6466643237663063376230333b6578703d31333a313230363638363631393231333b;
+VISITEUR=ID=12773e77-7a7a-412a-8c78-fb1a37f4bf47&DATE=16/04/2007
+13:36:13&MEMO_UIDPWD=False&UID=&PWD=; ASPSESSION=6A62D442FB5DFB940EDC4BB4
+HTTP_HOST:localhost:8080
+HTTP_USER_AGENT:Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8.1.3)
+Gecko/20070309 Firefox/2.0.0.3
+---------------
+HTTP_HOST :
+
+
+
+
+Expected Results:
+hubert at hublinux ~/Projects/testweb/testweb $ xsp
+xsp
+Listening on port: 8080 (non-secure)
+Listening on address: 0.0.0.0
+Root directory: /home/hubert/Projects/testweb/testweb
+Hit Return to stop the server.
+ALL_HTTP:HTTP_CACHE_CONTROL:max-age=0
+HTTP_CONNECTION:keep-alive
+HTTP_KEEP_ALIVE:300
+HTTP_ACCEPT:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
+HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
+HTTP_ACCEPT_ENCODING:gzip,deflate
+HTTP_ACCEPT_LANGUAGE:fr-fr,fr;q=0.8,en;q=0.5,en-us;q=0.3
+HTTP_COOKIE:ZM_AUTH_TOKEN=0_1785949a29debf592a1a77e7ac9ed201cd51d5e0_69643d33363a62326431643766622d623065312d346534392d623564362d6466643237663063376230333b6578703d31333a313230363638363631393231333b;
+VISITEUR=ID=12773e77-7a7a-412a-8c78-fb1a37f4bf47&DATE=16/04/2007
+13:36:13&MEMO_UIDPWD=False&UID=&PWD=; ASPSESSION=6A62D442FB5DFB940EDC4BB4
+HTTP_HOST:localhost:8080
+HTTP_USER_AGENT:Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8.1.3)
+Gecko/20070309 Firefox/2.0.0.3
+
+ALL_RAW:Cache-Control: max-age=0
+Connection: keep-alive
+Keep-Alive: 300
+Accept:
+text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
+Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
+Accept-Encoding: gzip,deflate
+Accept-Language: fr-fr,fr;q=0.8,en;q=0.5,en-us;q=0.3
+Cookie:
+ZM_AUTH_TOKEN=0_1785949a29debf592a1a77e7ac9ed201cd51d5e0_69643d33363a62326431643766622d623065312d346534392d623564362d6466643237663063376230333b6578703d31333a313230363638363631393231333b;
+VISITEUR=ID=12773e77-7a7a-412a-8c78-fb1a37f4bf47&DATE=16/04/2007
+13:36:13&MEMO_UIDPWD=False&UID=&PWD=; ASPSESSION=6A62D442FB5DFB940EDC4BB4
+Host: localhost:8080
+User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8.1.3)
+Gecko/20070309 Firefox/2.0.0.3
+
+APPL_MD_PATH:
+APPL_PHYSICAL_PATH:
+AUTH_TYPE:
+AUTH_USER:
+AUTH_PASSWORD:
+LOGON_USER:
+REMOTE_USER:
+CERT_COOKIE:
+CERT_FLAGS:
+CERT_ISSUER:
+CERT_KEYSIZE:
+CERT_SECRETKEYSIZE:
+CERT_SERIALNUMBER:
+CERT_SERVER_ISSUER:
+CERT_SERVER_SUBJECT:
+CERT_SUBJECT:
+CONTENT_TYPE:
+GATEWAY_INTERFACE:CGI/1.1
+HTTPS:off
+HTTPS_KEYSIZE:
+HTTPS_SECRETKEYSIZE:
+HTTPS_SERVER_ISSUER:
+HTTPS_SERVER_SUBJECT:
+INSTANCE_ID:
+INSTANCE_META_PATH:
+LOCAL_ADDR:127.0.0.1
+PATH_INFO:
+PATH_TRANSLATED:/home/hubert/Projects/testweb/testweb/index.aspx
+QUERY_STRING:
+REMOTE_ADDR:127.0.0.1
+REMOTE_HOST:127.0.0.1
+REMOTE_PORT:46319
+REQUEST_METHOD:GET
+SCRIPT_NAME:/index.aspx
+SERVER_NAME:localhost
+SERVER_PORT:8080
+SERVER_PORT_SECURE:0
+SERVER_PROTOCOL:HTTP/1.0
+SERVER_SOFTWARE:Mono.WebServer/0.1.0.0
+URL:/index.aspx
+HTTP_CACHE_CONTROL:max-age=0
+HTTP_CONNECTION:keep-alive
+HTTP_KEEP_ALIVE:300
+HTTP_ACCEPT:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
+HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
+HTTP_ACCEPT_ENCODING:gzip,deflate
+HTTP_ACCEPT_LANGUAGE:fr-fr,fr;q=0.8,en;q=0.5,en-us;q=0.3
+HTTP_COOKIE:ZM_AUTH_TOKEN=0_1785949a29debf592a1a77e7ac9ed201cd51d5e0_69643d33363a62326431643766622d623065312d346534392d623564362d6466643237663063376230333b6578703d31333a313230363638363631393231333b;
+VISITEUR=ID=12773e77-7a7a-412a-8c78-fb1a37f4bf47&DATE=16/04/2007
+13:36:13&MEMO_UIDPWD=False&UID=&PWD=; ASPSESSION=6A62D442FB5DFB940EDC4BB4
+HTTP_HOST:localhost:8080
+HTTP_USER_AGENT:Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8.1.3)
+Gecko/20070309 Firefox/2.0.0.3
+---------------
+HTTP_HOST :localhost:8080
+
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+It works well with MS.NET 1.1 and with old mono 1.2.3
+
+It breaks all apps based on this code...


More information about the mono-bugs mailing list