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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Goff-Dupont
Published 3 hours ago in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

38 views 2 3
Read article

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