Project

General

Profile

Bug #738

closed

Cache of conditional configuration tests is too eager: Breaks HTTP["url"] if conditions evaluated at uri_raw time

Added by Anonymous about 14 years ago. Updated over 12 years ago.

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

Description

If any module runs at uri_raw time and causes the conditional configuration tests to be evaluated, they get cached. But the URL is not yet known at this time (the URL gets compared to an empty string), so the cached answer is wrong and HTTPurl conditional configuration snippets don't work.

I've disabled the cache completely (replace the test in config_check_cond_cached by "if (-1)") and now it works fine.

-- lionel

#1

Updated by moo about 14 years ago

HTTPurl cannot contain any other type of conditionals, nor url.rewrite. if we do url.rewrite on cleaned url, it should workarround the problem. but this is a question to be or not to be.

#2

Updated by stbuehler over 12 years ago

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

Fixed in r2080, see #1164

Also available in: Atom