You are here: Foswiki>Tasks Web>Item13329 (17 May 2015, JozefMojzis)Edit Attach

Item13329: First login in the session leads to Not Found page

pencil
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiTools
Branches:
Reported By: JozefMojzis
Waiting For:
Last Change By: JozefMojzis

First login in the session leads to Not Found page

How to reproduce:

-- JozefMojzis - 26 Mar 2015

This seems to be an issue in the Lighttpd configuration, or maybe in Lighttpd. It's not possible to pass any query parameters on the default url. eg. http://localhost:8080/?raw=on I've played around with the lighttpd config, but can't seem to come up with a rule that matches the empty path.

-- GeorgeClark - 11 May 2015

In the utf8 branch the web name could start with utf8 char, so the generalisation (Anything what starts with uppercase [A-Z] should be handled with /bin/view) script isn't enough. Therefore I'm now using the following: Anything what isn't start with /bin or /pub should be handled by /bin/view script. E.g.: this:
--- refmast/foswiki/core/tools/lighttpd.pl   2015-05-10 23:14:06.000000000 +0200
+++ devcdot/foswiki/core/tools/lighttpd.pl   2015-05-17 09:41:01.000000000 +0200
@@ -124,10 +124,11 @@
 #debug.log-request-handling = "enable"
 
 # default landing page
- url.rewrite-once = ( "^/?(index.*)?\$" => "/bin/view/Main/WebHome" )
+# url.rewrite-once = ( "^/?(index.*)?\$" => "/bin/view/Main/WebHome" )
 
 # short urls
- url.rewrite-once += ( "^/([A-Z_].*)" => "/bin/view/\$1" )
+# url.rewrite-once += ( "^/([A-Z_].*)" => "/bin/view/\$1" )
+ url.rewrite-once += ( "^/((?!bin/|pub/).*)" => "/bin/view/\$1" )
 
 EOC
   ;

The above rewrites the "default landing page" too.

-- JozefMojzis - 17 May 2015
 

ItemTemplate edit

Summary First login in the session leads to Not Found page
ReportedBy JozefMojzis
Codebase trunk
SVN Range
AppliesTo Engine
Component FoswikiTools
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 17 May 2015, JozefMojzis
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy