Project

General

Profile

Bug #1771

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

Added by olegnitz about 11 years ago. Updated almost 11 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
mod_magnet
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

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.

History

#1

Updated by stbuehler about 11 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.

#2

Updated by olegnitz about 11 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?

#3

Updated by stbuehler about 11 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.

#4

Updated by stbuehler almost 11 years ago

  • Status changed from Fixed to Invalid

Also available in: Atom