Details
-
Bug
-
Resolution: Support Request
-
Low
-
None
-
5.8.13
-
None
Description
When adding attachment (drag and drop or already attached to page) the macro is broken and it's not displayed anymore within the page where it's injected.
Error logs specify it's an error related to call to deprecated method within Velocity file :
2015-11-17 09:59:20,067 ERROR [http-1990-2] [confluence.util.velocity.VelocityUtils] getRenderedTemplate Error occurred rendering template:
templates/extra/attachments/attachmentsmacro.vm
– referer: xxxx/pages/createpage.action?spaceKey=ds&fromPageId=1015813 | url: /confluence/display/ds/other+page | userName: admin | action: viewpage | page: 1015817
java.lang.IllegalArgumentException: (This exception is only thrown when dev.mode is enabled) Velocity template accessing deprecated method com.atlassian.confluence.pages.Attachment#getContentType - /templates/extra/attachments/attachments-table.vm[line 67, column 47]
at com.atlassian.confluence.velocity.introspection.AnnotationBoxingUberspect.logOrThrowDeprecationWarningsIfNecessary(AnnotationBoxingUberspect.java:204)