Project

General

Profile

Bug #1827

400 Response on any URL that countains a space character (ASCII 20)

Added by catmando about 9 years ago. Updated almost 9 years ago.

Status:
Fixed
Priority:
Immediate
Assignee:
Category:
-
Target version:
Start date:
2008-11-20
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

Description

Any url that contains a space (encoded as %20, or ASCII 20) fails with a 400 error. This seems to be linked to (or a duplicate of) http://redmine.lighttpd.net/issues/show/1822

I'd appreciate if someone could confirm this.


Related issues

Related to Bug #1720: Rewrite/redirect rules and URL encodingNeed Feedback

Related to Bug #1802: url-encode/decodeFixed2008-10-20

Has duplicate Bug #1832: lighty doesn't quote spaces in urls in proxy moduleFixed2008-11-26

Has duplicate Bug #1819: mod_rewrite not working anymore after patchingFixed2008-11-11

History

#1

Updated by catmando about 9 years ago

  • Target version set to 1.4.21
#2

Updated by catmando about 9 years ago

Sorry in my rush i forgot to mention that this is in 1.4.20

#4

Updated by peto about 9 years ago

There's no way this bug exists.

(And, er, ASCII 32, not 20.)

#5

Updated by catmando about 9 years ago

@Jine:
http://wwpde00.securesites.net/testbed/rewrite%20test

Compare to:
http://wwpde00.securesites.net:8001/testbed/rewrite%20test

I'm sorry to have been unclear again, but it seems that this is a rewrite problem. Static content does indeed seem to serve just fine, but the whole reason I love lighty is because it makes my CMS sites go super fast! I was in a rush as I had to catch a train.

The particular rewrite rule where I think the problem is looks like this:

$HTTP["host"] == "wwpde00.securesites.net"{
url.rewrite-once = ( "^/(.*)$" => "/VirtualHostBase/http/wwpde00.securesites.net:80//VirtualHostRoot/$1")
proxy.balance = "hash"
proxy.server = ( "/VirtualHostBase" => ( ( "host" => "127.0.0.1", "port" => 8001 ) ) )
}

peto:
The bug does exist, it's just in the rewrite module. And ASCII 32 decimal == ASCII 20 hex (i.e. what's actually used on the web).

#6

Updated by catmando almost 9 years ago

  • Assignee set to darix
#7

Updated by icy almost 9 years ago

  • Status changed from New to Fixed

Should be fixed in r2362

Also available in: Atom