Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-63485

Handy Macro could not render in Page Property Report header

      Issue Summary

      Handy Macro could not render properly when it is in Page Property Report header

      Steps to Reproduce

      1. Prepare a page which has page property macro and Handy Macro in the page property macro header
      2. Prepare a page which has page property macro report which include a page above

      Expected Results

      Handy Macro should be rendered normally

      Actual Results

      The below exception is thrown in the log file:

      java.lang.IllegalArgumentException: Could not check permissions for page: M-14 Task  Management v.1 (99485115) no suitable delegate found.
        at com.atlassian.confluence.security.DefaultPermissionManager.findDelegateFor(DefaultPermissionManager.java:271)
        at com.atlassian.confluence.security.DefaultPermissionManager.hasPermissionNoExemptions(DefaultPermissionManager.java:100)
        at com.atlassian.confluence.security.DefaultPermissionManager.hasPermission(DefaultPermissionManager.java:48)
        at jdk.internal.reflect.GeneratedMethodAccessor812.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:295)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
        at com.sun.proxy.$Proxy118.hasPermission(Unknown Source)
        at jdk.internal.reflect.GeneratedMethodAccessor812.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
        at com.sun.proxy.$Proxy278.hasPermission(Unknown Source)
        at jdk.internal.reflect.GeneratedMethodAccessor812.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131)
        at com.sun.proxy.$Proxy278.hasPermission(Unknown Source)
        at com.stiltsoft.confluence.handy.macros.manager.PermissionManager.hasPermission(PermissionManager.java:65)
        at com.stiltsoft.confluence.handy.macros.manager.PermissionManager.hasPageEditPermission(PermissionManager.java:53)
        at com.stiltsoft.confluence.handy.macros.transformer.HandyTransformer.shouldTransform(HandyTransformer.java:109)
        at com.stiltsoft.confluence.handy.macros.transformer.HandyTransformer.transform(HandyTransformer.java:60)
      

      Workaround

      N/A

            [CONFSERVER-63485] Handy Macro could not render in Page Property Report header

            Which LTS version will include this fix?

            Christian Schwarze added a comment - Which LTS version will include this fix?

            A fix for this issue is available to Server and Data Center customers in Confluence 7.12.2
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Jiri Hronik added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.12.2 Upgrade now or check out the Release Notes to see what other issues are resolved.

            A fix for this issue is available to Server and Data Center customers in Confluence 7.12.1
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Jiri Hronik added a comment - A fix for this issue is available to Server and Data Center customers in Confluence 7.12.1 Upgrade now or check out the Release Notes to see what other issues are resolved.

              dluong Duy Truong Luong
              dluong Duy Truong Luong
              Affected customers:
              5 This affects my team
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: