Project

General

Profile

Actions

Bug #1771

closed

mod_magnet setting of physical.path is ignored, server hangs up.

Added by olegnitz over 15 years ago. Updated over 15 years ago.

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

Description

The changeset http://trac.lighttpd.net/trac/changeset/2234 makes impossible to use mod_magnet is a way like
lighty.envphysical.path = ...
return lighty.RESTART_REQUEST
which is desribed in documentation, now physical.path is just reset.
Thus scripts that worked before this change now make lighttpd to go into infinite loop, server hangs up.

Actions #1

Updated by stbuehler over 15 years ago

- i couldn't find the mentioned example
- i have no problem with changing the behaviour in 1.5.x


A special return-code is lighty.RESTART_REQUEST (currently equal to 99) which is usually used in combination with changing the request.uri in a rewrite. It restarts the splitting of the request-uri again.

The request-uri is only handled if we reset physical-path, so i think r2234 was the right thing to do.

Actions #2

Updated by olegnitz over 15 years ago

http://trac.lighttpd.net/trac/wiki/Docs:ModMagnet#lighty-env

"As a start, you might want to use those variables for writing:
...

-- 2. changing the physical-path"

Why would one change physical-path if (s)he is not going to return lighty.RESTART_REQUEST?

Actions #3

Updated by stbuehler over 15 years ago

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

read the docs and understand them. you don't want to restart the splitting of the request-uri, so you don't return restart_request, and there is no example doing this - you just tried combining 2 examples.

Actions #4

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom