I don't have full information on this problem yet, because I'm still not totally certain what I should be looking for.

The situation: any time I create a new node, any non-administrator attempt to access it, or any view containing it, generates an Access Denied error. I have to rebuild the permissions table every time I create or edit a node.

Any suggestions on where I could start looking to troubleshoot this problem?

Comments

SabbeRubbish’s picture

Title: Access denied after creating nodes? » Node Permissions not updated after post added
Category: support » bug
Priority: Normal » Critical

I have the same problem and I can explain some about it.

It has to do with forum topics - but as their forum_access works perfectly together with simple_access I think that's not the problem.

Context: Any user on the site creates a(ny) node or comment - make sure not the administrator.
Problem: Other users CAN NOT see that post/comment untill the "Rebuild permissions" is issued.
Solution: needed quickly - this is affecting my site's interactivity, and I'm not able to disable simple_access to due access restrictions ;-)

Thanks a lot - really need quick fix.

Thank you.

SabbeRubbish

raygun’s picture

Having the exact same problem here. Pages that have been edited show an access denied error to anonymous users until permissions are rebuilt. Not sure I can add any more information...

Has anyone been able to fix this?

SabbeRubbish’s picture

No luck yet, and I'm not managing much content (-> always surprised when I see 403's), I wouldn't want to dream what happens when having hundreds of posts per day (I'm happy with an average 2 ;))

This problem is really critical, please advise.

jonne.freebase’s picture

I think I'm having the same issue, subscribing to this thread.

jonne.freebase’s picture

It seems like after something is posted, for some reason the permissions don't get inserted into the `node_access`table. Not sure why, though.

gordon’s picture

Version: 5.x-1.2-2 » 5.x-1.x-dev
Status: Active » Fixed

I have fixed this in dev. Please check this and make sure I have fixed this and let me know.

Thanks.

jonne.freebase’s picture

Hi Gordon,

Thanks for looking at this :).

It seems to work if you select some of the checkboxes in 'access', but if you leave them blank it's still broken (I'm correct that the default value for 'realm' in the database should be 'all', instead of 'simple_access_author', right? Or is it supposed to be hiding stuff by default?).

Jonathan

gordon’s picture

Give this ago, It should be creating the system correctly now.

Let me know and I will release a new version.

jonne.freebase’s picture

This seems to work properly on my setup. Defaults to showing for all, and changing permissions works properly too now.

Thanks for fixing this so quickly.

Jonathan

domesticat’s picture

I'm not certain it's a complete fix on my end, but I need a couple more days to test.

domesticat’s picture

I've done a bit more testing, and while better, it's not wholly fixed yet for me. I'm not getting the 'access denied' error when I look at a view that contains the just edited/saved node, but the node isn't publicly viewable until I rebuild permissions. I'd say you're on the right track.

I'll be adding more new nodes in the next few days. I'll be happy to provide info about what's saved into the database before and after I run rebuild node permissions. Just let me know what info you'd like to see.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

SabbeRubbish’s picture

Status: Closed (fixed) » Needs work
SabbeRubbish’s picture

Version: 5.x-1.x-dev » 5.x-1.3

Could it be that this issue has been addressed in the latest version? (together with the security fix)
I don't seem to be having the problem anymore.

domesticat’s picture

Status: Needs work » Fixed

Yes. It seems to be working for me as well. Marking fixed with a happy little squee noise.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.