always stash the wikiContext, it is also needed on places without authorization, for example at wiki:message tag (specifically when on WikiTagBase:81-84) on Error.jsp
@@ -420,13 +420,10 @@ public class AuthorizationManager {
ResourceBundle rb = Preferences.getBundle( context, InternationalizationManager.CORE_BUNDLE );
// Stash the wiki context
- if( allowed )
- {
if ( context.getHttpRequest() != null && context.getHttpRequest().getAttribute( WikiTagBase.ATTR_CONTEXT ) == null )
{
context.getHttpRequest().setAttribute( WikiTagBase.ATTR_CONTEXT, context );
}
- }
// If access not allowed, redirect
if( !allowed && redirect )
