Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to fix user error with blog posts macro

martin hulth April 18, 2016

This question is in reference to Atlassian Documentation: Blog Posts Macro

When I add the macro to a Wiki page it gives me the following error:

Error rendering macro 'blog-posts' : com.atlassian.confluence.user.AuthenticatedUserThreadLocal.get()Lcom/atlassian/confluence/user/ConfluenceUser;

I have full permission rights both as an Individual and a Group (for both the Wiki Space Admin and another Group I've given permission to). I am able to add blog entries and view them, but I cannot get the blog-list macro to work. Please help! smile

1 answer

0 votes
Aleks Yenin (Polontech)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2016

Hi,

It could be some isssues. Have a look at  this https://bitbucket.org/apurde/svg-out/issues/4/macro-rendering-error

 



Remove:

        // check whether the user has access rights to the page
        ConfluenceUser confluenceUser = AuthenticatedUserThreadLocal.get();
        if(!permissionManager.hasPermission(confluenceUser, Permission.VIEW, ceo)) {
            return "svg-out: Sorry, you do not have proper access rights to the page where the image is attached to!";
        }

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events