Title | Redirect fails for custom group login when application name changed ? |
Date | 29-Apr-2006 00:59:46 EEST |
Version | 2.40.0-beta |
Submitter | 83.151.240.134 |
Bug criticality | LightBug |
Browser version | IE 6 |
Bug status | NewBug |
PageProvider used | ? |
Servlet Container | tomcat 5.5.9 |
Operating System | Linux version 2.6.16-1.2069_FC4 |
URL | closed network |
Java version | 1.5.0_05-b05 |
Appologies if this is down to my configuration, but it appears as if the code is attempting to redirect to the standard JSPWiki home page after a sucessful Group Member login, but as I have renamed the application the standard home page no longer exists?
regards
John Heap. John@wildbare.com
jspwiki.applicationName set to FooBarWiki (not JSPWiki)
A group 'GroupOne' is created and the follwing added to the jspwiki.policey file.
grant signedBy "jspwiki" principal com.ecyrd.jspwiki.auth.GroupPrincipal "GroupOne" { permission com.ecyrd.jspwiki.auth.permissions.PagePermission ":*", "view"; permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*", "edit"; permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "login"; };
When you attempt to login as a member of GroupOne the error log shows the following:-
2006-04-28 22:29:58,257 [http-8080-Processor25] INFO SecurityLog FooBarWiki:http://tiger/FooBar/Login.jsp - WikiSecurityEvent.LOGIN_AUTHENTICATED [source=com.ecyrd.jspwiki.auth.AuthenticationManager@167d7fb, princpal=[WikiPrincipal (loginName): Harry], target=null] 2006-04-28 22:29:58,258 [http-8080-Processor25] INFO JSPWiki FooBarWiki:http://tiger/FooBar/Login.jsp - Successfully authenticated user Harry (custom auth) 2006-04-28 22:29:58,267 [http-8080-Processor25] INFO JSPWiki FooBarWiki:http://tiger/FooBar/Login.jsp - Redirecting user to Wiki.jsp 2006-04-28 22:29:58,440 [http-8080-Processor25] ERROR com.ecyrd.jspwiki.tags.WikiTagBase FooBarWiki:http://tiger/FooBar/Wiki.jsp - Tag failed javax.servlet.jsp.JspException: WikiContext may not be NULL - serious internal problem! at com.ecyrd.jspwiki.tags.WikiTagBase.doStartTag(WikiTagBase.java:82) at org.apache.jsp.Error_jsp._jspx_meth_wiki_Messages_0(org.apache.jsp.Error_jsp:180) at org.apache.jsp.Error_jsp._jspService(org.apache.jsp.Error_jsp:129) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
Have you found a solution to this issue?
--MikeW, 11-Aug-2006
Could you describe exactly what you're doing? "Renaming the application" is not exactly clear.
Add new attachment
Only authorized users are allowed to upload new attachments.