How to fix user error with blog posts macro

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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

667 views 21 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you