Details
-
Bug
-
Resolution: Fixed
-
Low
-
4.3
-
None
-
4.3-rc1
-
4.03
-
Description
We have a websudo enabled webwork action, declared using the @WebSudoRequired annotation.
When navigating to the action without being logged in (direct link, first action after JIRA startup), JIRA displays the websudo login dialog, with empty user name and a "Not You?" link beside it, in addition an NPE is thrown.
Expected behaviour: First redirect to the general login screen, then redirect to the websudo login screen, then let the user pass.
INFO] [talledLocalContainer] [ERROR] 2011-03-16 10:17:21,201 http-2990-1 [webwork.util.ValueStack] query="/username" {[id="null" type="5" values=""]} {[id="username" type="8" values=""]} [INFO] [talledLocalContainer] java.lang.reflect.InvocationTargetException [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ... [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:680) [INFO] [talledLocalContainer] Caused by: java.lang.NullPointerException [INFO] [talledLocalContainer] at com.atlassian.jira.web.action.admin.WebSudoAuthenticate.getUsername(WebSudoAuthenticate.java:103) [INFO] [talledLocalContainer] ... 204 more