Project

General

Profile

Actions

Bug #12

closed

Lighttpd treats POST/GET request different for server.error-handler-404

Added by Anonymous almost 20 years ago. Updated about 16 years ago.

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

Description

I am on Colinux/Debian. Maybe someone with the real deal can test if it affects them too?

When requesting a page via POST lighttpd doesn't find the error document for 404. It does find it for a GET request to the same page however.


001 The failing POST request:
002 
003 
004 2005-02-16 12:36:36: (response.c.817) -- splitting Request-URI
005 2005-02-16 12:36:36: (response.c.818) Request-URI : /page/post/1
006 2005-02-16 12:36:36: (response.c.819) URI-scheme : https
007 2005-02-16 12:36:36: (response.c.820) URI-authority: 192.168.1.5:9001
008 2005-02-16 12:36:36: (response.c.821) URI-path : /page/post/1
009 2005-02-16 12:36:36: (response.c.822) URI-query :
010 2005-02-16 12:36:36: (response.c.866) -- sanatising URI
011 2005-02-16 12:36:36: (response.c.867) URI-path : /page/post/1
012 2005-02-16 12:36:36: (response.c.961) -- logical -> physical
013 2005-02-16 12:36:36: (response.c.962) Doc-Root : /home/simplepages/rails/public
014 2005-02-16 12:36:36: (response.c.963) Rel-Path : /page/post/1
015 2005-02-16 12:36:36: (response.c.964) Path : /home/simplepages/rails/public/page/post/1
016 2005-02-16 12:36:36: (response.c.980) -- handling physical path
017 2005-02-16 12:36:36: (response.c.981) Path : /home/simplepages/rails/public/page/post/1
018 2005-02-16 12:36:36: (response.c.817) -- splitting Request-URI
019 2005-02-16 12:36:36: (response.c.818) Request-URI : /dispatch.fcgi
020 2005-02-16 12:36:36: (response.c.819) URI-scheme : https
021 2005-02-16 12:36:36: (response.c.820) URI-authority: 192.168.1.5:9001
022 2005-02-16 12:36:36: (response.c.821) URI-path : /dispatch.fcgi
023 2005-02-16 12:36:36: (response.c.822) URI-query :
024 2005-02-16 12:36:36: (response.c.866) -- sanatising URI
025 2005-02-16 12:36:36: (response.c.867) URI-path : /dispatch.fcgi
026 2005-02-16 12:36:36: (response.c.961) -- logical -> physical
027 2005-02-16 12:36:36: (response.c.962) Doc-Root : /home/simplepages/rails/public
028 2005-02-16 12:36:36: (response.c.963) Rel-Path : /dispatch.fcgi
029 2005-02-16 12:36:36: (response.c.964) Path : /home/simplepages/rails/public/dispatch.fcgi
030 2005-02-16 12:36:36: (response.c.980) -- handling physical path
031 2005-02-16 12:36:36: (response.c.981) Path : /home/simplepages/rails/public/dispatch.fcgi
032 2005-02-16 12:36:36: (response.c.1114) -- file found
033 2005-02-16 12:36:36: (response.c.1115) Path : /home/simplepages/rails/public/dispatch.fcgi
034 2005-02-16 12:36:36: (connections.c.1269) error-handler not found: /dispatch.fcgi
035 
036 The same request send as GET request
037 
038 2005-02-16 12:41:21: (response.c.817) -- splitting Request-URI
039 2005-02-16 12:41:21: (response.c.818) Request-URI : /page/post/1
040 2005-02-16 12:41:21: (response.c.819) URI-scheme : https
041 2005-02-16 12:41:21: (response.c.820) URI-authority: 192.168.1.5:9001
042 2005-02-16 12:41:21: (response.c.821) URI-path : /page/post/1
043 2005-02-16 12:41:21: (response.c.822) URI-query :
044 2005-02-16 12:41:21: (response.c.866) -- sanatising URI
045 2005-02-16 12:41:21: (response.c.867) URI-path : /page/post/1
046 2005-02-16 12:41:21: (response.c.961) -- logical -> physical
047 2005-02-16 12:41:21: (response.c.962) Doc-Root : /home/simplepages/rails/public
048 2005-02-16 12:41:21: (response.c.963) Rel-Path : /page/post/1
049 2005-02-16 12:41:21: (response.c.964) Path : /home/simplepages/rails/public/page/post/1
050 2005-02-16 12:41:21: (response.c.980) -- handling physical path
051 2005-02-16 12:41:21: (response.c.981) Path : /home/simplepages/rails/public/page/post/1
052 2005-02-16 12:41:21: (response.c.817) -- splitting Request-URI
053 2005-02-16 12:41:21: (response.c.818) Request-URI : /dispatch.fcgi
054 2005-02-16 12:41:21: (response.c.819) URI-scheme : https
055 2005-02-16 12:41:21: (response.c.820) URI-authority: 192.168.1.5:9001
056 2005-02-16 12:41:21: (response.c.821) URI-path : /dispatch.fcgi
057 2005-02-16 12:41:21: (response.c.822) URI-query :
058 2005-02-16 12:41:21: (response.c.866) -- sanatising URI
059 2005-02-16 12:41:21: (response.c.867) URI-path : /dispatch.fcgi
060 2005-02-16 12:41:21: (response.c.961) -- logical -> physical
061 2005-02-16 12:41:21: (response.c.962) Doc-Root : /home/simplepages/rails/public
062 2005-02-16 12:41:21: (response.c.963) Rel-Path : /dispatch.fcgi
063 2005-02-16 12:41:21: (response.c.964) Path : /home/simplepages/rails/public/dispatch.fcgi
064 2005-02-16 12:41:21: (response.c.980) -- handling physical path
065 2005-02-16 12:41:21: (response.c.981) Path : /home/simplepages/rails/public/dispatch.fcgi
066 2005-02-16 12:41:21: (response.c.1114) -- file found
067 2005-02-16 12:41:21: (response.c.1115) Path : /home/simplepages/rails/public/dispatch.fcgi

My config (minus mimetypes):


# lighttpd configuration file
#
debug.log-request-handling = "enable" 
server.modules = ( "mod_access", "mod_fastcgi", "mod_accesslog" )
server.document-root = "/home/simplepages/rails/public" 
server.errorlog = "/home/simplepages/logs/error.log" 
server.indexfiles = ( "index.php", "index.html", "index.htm", "default.htm" )
accesslog.filename = "/home/simplepages/logs/access.log" 
url.access-deny = ( "~", ".inc" )
server.port = 9001
server.bind = "192.168.1.5" 
server.error-handler-404 = "/dispatch.fcgi" 
fastcgi.server = (
  ".fcgi" =>
    ( "localhost" =>
      (
        "socket" => "/tmp/simplepages.rails1.socket",
        "bin-path" => "/home/simplepages/rails/public/dispatch.fcgi" 
      )
    ),
  ".fcgi" =>
    ( "localhost" =>
      (
        "socket" => "/tmp/simplepages.rails2.socket",
        "bin-path" => "/home/simplepages/rails/public/dispatch.fcgi" 
      )
    ),
  ".fcgi" =>
    ( "localhost" =>
      (
        "socket" => "/tmp/simplepages.rails3.socket",
        "bin-path" => "/home/simplepages/rails/public/dispatch.fcgi" 
      )
    ),
  ".fcgi" =>
    ( "localhost" =>
      (
        "socket" => "/tmp/simplepages.rails4.socket",
        "bin-path" => "/home/simplepages/rails/public/dispatch.fcgi" 
      )
    ),
  ".fcgi" =>
    ( "localhost" =>
      (
        "socket" => "/tmp/simplepages.rails5.socket",
        "bin-path" => "/home/simplepages/rails/public/dispatch.fcgi" 
      )
    ),
  ".php" =>
    ( "localhost" =>
      (
        "socket" => "/tmp/simplepages.php-fcgi.socket",
        "bin-path" => "/usr/bin/php4-cgi" 
      )
    )
)

-- se

Actions #1

Updated by Anonymous almost 20 years ago

  • Status changed from New to Assigned

can you please provide a mininal test-case for this problem ? Like only using PHP and small script to verify it ?

-- jan

Actions #2

Updated by jan almost 20 years ago

  • Status changed from Assigned to New
Actions #3

Updated by Anonymous almost 20 years ago

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

I don't know exactly why, but this seems to be an issue with JavaScript. I tried a normal form:


<form action="/page/test/123" method="post">
   <input name="test" value="test" />
   <input type="submit" value="go" />
</form>

and it will post just fine. I don't get why the request looks right in the errorlog and then suddenly bails out. I will do further tests.

-- Sascha Ebach

Actions #4

Updated by stbuehler about 16 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom