Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
5.10.1
-
13
-
Severity 3 - Minor
-
1
-
Description
Steps to reproduce
- Generate a site XML backup (easier if there are some test data so that the restore takes some time)
- Import this into Confluence from the Admin console
- Refresh the page, or alternatively, access Confluence base URL at all mid-restore
Expected behavior
- Confluence will show some message about import in progress and display a progress bar
- In the case of the refresh on the importer page, Confluence should not try to re-submit the form (which triggers a second import attempt that will fail because an import is already in progress)
Actual behavior
Stacktrace is shown as the user is directed to the login page. There's an NPE because data is not fully imported:
2016-07-14 15:18:23,461 ERROR [http-nio-8080-exec-2] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/login.vm' -- url: /login.action | traceId: fd3a09596d821bb2 | userName: anonymous | action: login org.apache.velocity.exception.MethodInvocationException: Invocation of method 'isShowSignUp' in class com.atlassian.confluence.user.actions.LoginAction threw exception java.lang.NullPointerException: Application cannot be null at /login.vm[line 6, column 28] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.Template.merge(Template.java:328) at org.apache.velocity.Template.merge(Template.java:235) ... Caused by: java.lang.NullPointerException: Application cannot be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at com.atlassian.confluence.admin.criteria.DirectoryUtil.getActiveDirectories(DirectoryUtil.java:29) at com.atlassian.confluence.admin.criteria.DirectoryUtil.findFirstDirectoryWithGivenPermission(DirectoryUtil.java:47) at com.atlassian.confluence.admin.criteria.DirectoryUtil.findFirstDirectoryWithCreateUserPermission(DirectoryUtil.java:37) at com.atlassian.confluence.admin.criteria.DefaultWritableDirectoryExistsCriteria.isMet(DefaultWritableDirectoryExistsCriteria.java:35) at com.atlassian.confluence.user.actions.AbstractLoginSignupAction.isShowSignUp(AbstractLoginSignupAction.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:385) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:374) at com.atlassian.confluence.velocity.introspection.UnboxingMethod.invoke(UnboxingMethod.java:29) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) ... 353 more