Details
-
Bug
-
Resolution: Fixed
-
Low
-
3.0.2, 3.3, 3.3.1
Description
Steps to reproduce
- Create pageA and attach some files
- Insert {attachments} macro
- Insert {attachments} macro
- Create pageB
- Insert {include:pageA}
- Insert {include:pageA}
- View pageB
- Clicking on Properties will result System Error page with the following stack trace:
java.lang.NullPointerException at com.atlassian.confluence.pages.actions.MoveAttachmentAction.bootstrap(MoveAttachmentAction.java:115) Stack Trace:[hide] java.lang.NullPointerException at com.atlassian.confluence.pages.actions.MoveAttachmentAction.bootstrap(MoveAttachmentAction.java:115) at com.atlassian.confluence.setup.webwork.BootstrapAwareInterceptor.intercept(BootstrapAwareInterceptor.java:18) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.user.actions.UserAwareInterceptor.intercept(UserAwareInterceptor.java:58)
- Clicking on Remove does not take effect
- Clicking on View (for Office files) will result Page Not Found
- Clicking on Properties will result System Error page with the following stack trace:
Findings
Possible cause: the link of attachments in pageB is referring to pageid of pageB instead of its source pageid (pageA)
Workaround
Just found out that if you click on Remove once in pageB, all functions of attachments macro will work fine as the pageid is now referring to the correct source (pageA).
However, be careful in clicking on Remove link twice as it will remove the attachment
Attachments
Issue Links
- is duplicated by
-
CONFSERVER-17252 Broken links using {include} and {attachments} macros
- Closed