From Bugzilla Helper: User-Agent: Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/20030314 Description of problem: When visiting the root of a WAF site (ie the url path '/'), all that is shown is a directory listing. Furthermore, the example, index.jsp_redirector file has two bugs in it which prevent it from working: a) it includes whitespace after the 'throw new RedirectSignal' line b) it redirects back to '/'. Since we have now dropped support for the old dispatcher we should rename this JSP to be just 'index.jsp' so WAF works in a useful manner 'out of the box'. The following JSP fixes bugs a) & b): <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"> <jsp:directive.page import="com.arsdigita.kernel.security.Initializer"/> <jsp:directive.page import="com.arsdigita.web.URL"/> <jsp:directive.page import="com.arsdigita.web.RedirectSignal"/> <jsp:directive.page extends="com.arsdigita.web.BaseJSP"/> <jsp:scriptlet> throw new RedirectSignal(URL.there(request, Initializer.getFullURL(Initializer.ROOT_PAGE_KEY, request)), false); </jsp:scriptlet> </jsp:root> Instead of using the ROOT_PAGE_KEY, we're probably better off adding a simple java property for designating the root page (eg 'waf.web.homepage=/foo/bar/somepage.jsp'), particulary since its is much harder to customize enterprise.init Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Visit / 2. 3. Actual Results: Shown directory listing Expected Results: Redirected to the homepage, eg /ccm/register Additional info: We have already made this change in the APLAWS application web directory, but it should preferrably be done in core.
It should in fact redirect to 'WORKSPACE_PAGE_KEY', so that if the user is already logged in, they are not needlessly shown the login form. cf SDM 22543
is this the same as bug 108722?
No, I believe that bug is referring to the public page for a content section, eg whatever is shown at /content/, but check with Jon.
As of 37762, we redirect to WORKSPACE_PAGE_KEY.