Project

General

Profile

Actions

Bug #802

closed

FCGI_PARAMS record is malformed

Added by Anonymous over 18 years ago. Updated over 16 years ago.

Status:
Invalid
Priority:
Normal
Category:
mod_fastcgi
Target version:
-
ASK QUESTIONS IN Forums:

Description

The FCGI_PARAMS record misses a length prefix on one of the name-value pairs. This is on Windows with FastCGI set up to communicate over TCP/IP with the app server running locally. Here's a rough print out of the record in question, numbers between #'s represent numeric values of length prefixes (except in a couple of places where ASCII characters appear instead), line breaks inserted for clarity:


#15##15#SERVER_SOFTWARElighttpd/1.4.11
#11##9#SERVER_NAMElocalhost
#17##7#GATEWAY_INTERFACECGI/1.1
#11##2#SERVER_PORT80
#11##9#SERVER_ADDR127.0.0.1
#11##4#REMOTE_PORT1035
#11##9#REMOTE_ADDR127.0.0.1
#11##9#SCRIPT_NAME/test.lua
#9##0#PATH_INFO
#15##21#SCRIPT_FILENAMEE:/www/pages/test.lua
DOCUMENT_ROOTE:/www/pages/
#11##15#REQUEST_URI/test.lua?end=1
#12##5#QUERY_STRINGend=1
#14##3#REQUEST_METHODGET
#15##3#REDIRECT_STATUS200
#15##8#SERVER_PROTOCOLHTTP/1.1
#9##9#HTTP_HOSTlocalhost
#15#ZHTTP_USER_AGENTMozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6
#11#cHTTP_ACCEPTtext/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
#20##23#HTTP_ACCEPT_LANGUAGEru,en-us;q=0.7,en;q=0.3
#20##12#HTTP_ACCEPT_ENCODINGgzip,deflate
#19##30#HTTP_ACCEPT_CHARSETISO-8859-1,utf-8;q=0.7,*;q=0.7
#15##3#HTTP_KEEP_ALIVE300

The DOCUMENT_ROOT pair above is missing a prefix, resulting in the first two characters being used as a prefix instead.

Actions #1

Updated by jan over 17 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid

I can't repeat this in 1.4.16.

Please reopen the bug if this still appears.

Actions #2

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom