Details

Description

If xwiki.virtual.redirect is not specified for a virtual wiki, attempting to access a subdomain that does not correspond to a wiki causes the browser to be redirected repeatedly to the same invalid url.

xwiki.virtual.redirect is commented out and has an unhelpful value by default.
(The default is ...127.0.0.1/..., but a valid external URL is needed.)

Issue Links

duplicates

XWIKI-8914Replace "xwiki.virtual.redirect" with an error template(or page) just like the other errors

Actually if xwiki.virtual.redirect is not specified, HttpServletResponse.sendRedirect() is called with null that seams to be understood by browser as no redirection (it stop to load a show blank page).

Thomas Mortagne
added a comment - 24/Jan/08 11:52 Actually if xwiki.virtual.redirect is not specified, HttpServletResponse.sendRedirect() is called with null that seams to be understood by browser as no redirection (it stop to load a show blank page).

I propose to redirect to main wiki home page if there is any probleme (redirect is same url than current one and redirect is not set) and if main wiki home page is not reachable then call sendRedirect will null. WDYT ?

Thomas Mortagne
added a comment - 24/Jan/08 12:15 I propose to redirect to main wiki home page if there is any probleme (redirect is same url than current one and redirect is not set) and if main wiki home page is not reachable then call sendRedirect will null. WDYT ?

Don't sendRedirect with null. If the requested URL is not in the main wiki, then first send there. If the requeste & not found URL belongs to the main wiki, then somethins is terribly wrong. There can't NOT be a main wiki. Better output a static page with a 500 status, so that the user at least sees that something is wrong, instead of a blank page.

Sergiu Dumitriu
added a comment - 27/Jan/08 23:40 Don't sendRedirect with null. If the requested URL is not in the main wiki, then first send there. If the requeste & not found URL belongs to the main wiki, then somethins is terribly wrong. There can't NOT be a main wiki. Better output a static page with a 500 status, so that the user at least sees that something is wrong, instead of a blank page.