Closed (duplicate)
Project:
Content Access
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2011 at 17:32 UTC
Updated:
12 Oct 2011 at 06:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
picsofle commentedI have the same problem.
Drupal 7.4
views 7.x-3.0-rc1
Content Access 7.x-1.x-dev (2011-Jul-08)
Comment #2
good_man commentedPLEASE search the issue queue before you ask.
#1115794: Conflict with views module
Comment #3
picsofle commentedAfter updating views to the latest dev version I have the same issue. Anonymous users only have access to forum, contact and search pages. At all other pages access will be denied.
Comment #4
maxweld commentedI have the same behavior as picsofle.
Comment #5
good_man commentedI need from you the clear steps to reproduce this problem, I can't figure out what's wrong unless I see it on my machine.
Comment #6
bmango commentedOk, I did a fresh standard installation of Drupal 7.4. I then installed content access 7.x-1.x-dev (2011-Jul-08). I rebuilt permissions. As soon as I had rebuilt the permissions anonymous users were denied access to content (I had just set up a home page). I didn't install any other modules.
Comment #7
picsofle commentedI also have a standard installation of Drupal 7.4. Content access was already installed before the update (working properly). After updating content access to 7.x-1.x-dev (2011-Jul-08) anonymous users only have access to forum, contact and search pages. At all other pages access will be denied.
Rebuilding permissions does not solve the problem.
Comment #8
skov commentedAlso installed using latest dev for views, content_access, ctools. Access is denied if both "anonymous" and "authenticated user" are checked for "view any page content"
Seems related to #1212718: View any content does not work when the Anonymous + Authenticated are both checked
Comment #9
vizint commentedSame situation here...
As soon as I turn off "authenticated user" the "anonymous" access control begins to work properly.
Comment #10
hilldw commentedHaving the same problem on this end with latest version of Content Access. Running 7.4 Drupal.
Comment #11
richH commentedHi,
having same problem as listed in http://drupal.org/node/1212718 which is the same as refered to in #8
Thanks
Rich
Comment #12
kmdesign commentedReplicated on my install as well, running D7.4.
Is there any other option for Content Type-level access restriction for D7 that I'm not aware of, or do I need to be patient and wait for the next dev version of this module?
Regardless, I'm appreciative of the work completed on this port thus far.
Thanks,
Matt
Comment #13
richardbporter commentedI'm having this problem as well after upgrading to D7.4 and CA7.x-1.x-dev. I had to disable CA to fix for now.
Sub.
Comment #14
MrPhilbert commentedSame here. This only applies to anonymous users. Any other roles that are created are not affected.
Did someone spell autenticatid wrong maybe?
Lord knows I have a tough enough time spelling it!
I have this on a production site and (fortunately) users are either anonamouse or in a dedicated role. Nobody is merely "othentacated".
Looking forward to a fix though as this is a great module.
Thanks for the module and I hope you at least got a little chuckle here.
MrPhilbert
Comment #15
yaworsk commentedsubscribing... not much more I can add, same version of Drupal and views. can't see any nodes but can see blocks so long as they aren't related to nodes (i.e., client has a bunch of blocks with custom html content). I am able to see other entities like Profiles created by Profile2 module and so my views showing profile2 information still work.
**EDIT: I went into a few content types and removed authenticated but it didn't work.
Comment #16
lyd commentedI'm having the same problem after upgrading to Content Access 7.x-1.x-dev version from July 8.
Was already using Core D7.4 with no problems before the upgrade.
Since the Content Access upgrade suddenly access is denied anonymous users.
Going into into each content type and removing Authenticated solves the problem.
It is an excellent module, and hopefully this problem can be solved soon.
Comment #17
oriolo76 commentedOn D7 disabling the Content Access module allows accessing from anyone, but of course this is not a solution.
Still waiting for this very important patch.
Comment #18
GalainHH commentedAs far as I can say:
EVERY SAVING of a node writes wrong permissions for the node into the node_access table. (see attachment)
In column "realm" is the value "content_access_all". If I set the value manually to "all" the node is accessibly by anyone.
DO NOT REBUILD PERMISSIONS, this will result in all nodes having the realm "content_access_all". (see attachment)
Comment #19
GalainHH commentedI don´t think this has anything to do with views, as I have this error an all nodes
Comment #20
oriolo76 commentedNo relation with views. About #18, there is also a worse case: when you modify something, that node becomes no accessible again (since the realm is set to 'content_access_all' after any modification).
Comment #21
GalainHH commentedYes, that's exactly what I wanted to say with
"EVERY SAVING of a node writes wrong permissions for the node into the node_access table"
:-)
Comment #22
3cwebdev commentedSame issue here. Subscribing for solution.
Comment #23
MrPhilbert commentedCome to think of it, that's what got me started. I modified a node, saved it and it disappeared from view.
When I rebuilt permissions, everything disappeared.
Does reverting to previous version of CA solve the problem?
Comment #24
Vasu commented#16 works. Thanks lyd.
De-selecting 'view any ### content' for 'authenticated user' (and keeping the selection for 'anonymous user') in any content type makes that particular content type visible again to anonymous users.
P.S.Initially tried deselecting 'view published content' for 'authenticated user' in drupal global permissions, but did not solve the problem.
Comment #25
oriolo76 commentedif we apply #16 it works for anonymous users, but for the authenticated ones the problem still remains open!
Comment #26
wjaspers commentedSubbing. Menu entries are also prevented from being seen because of this.
I agree with #20.
On lines 507-512 of content_access.module, you'll see:
If we change the $grants['all'] realm to "all", this should be correct. I think what's happening is "content_access_all" was just a typo left-in following other naming conventions throughout this module.
I'll generate a patch sometime today.
Comment #27
wjaspers commentedGive this patch a try.
Comment #28
MrPhilbert commentedYou folks are fast
Comment #29
patricko67 commentedPatch from #27 appears to be working for me after permissions rebuild. Thanks!..
Comment #30
wjaspers commentedForgot to set the needs review flag for #27.
Comment #31
picsofle commentedPatch from #27 works for me too. Thanks!
Comment #32
MrPhilbert commentedGreat patch and a terrific, quick response!
Thanks
Comment #33
yaworsk commentedConfirmed, patch form #27 worked for me. Thanks wjaspers!
Comment #34
oriolo76 commentedIt works also in my case. thank you to all.
Comment #35
wipeout_dude commentedMostly just subscribing because I bumped into this problem today..
Not sure what to do with the patch on post 27..
How long does it usually take for patches to get into the downloadable module?
I don't need it right now but will soon so I can disable Content Access until a new version with the patch is available..
Thanks for a great module, combined with ACL it looks like it will give me the full permissions control I am looking for..
Comment #36
bmango commented#27 has fixed it for me. Thank you very much!
Comment #37
MrPhilbert commentedUse Netbeans to patch.
Till then, here is the module that I patched.
Comment #38
yaworsk commentedAdditionally, this patch is pretty simple so you could open up the .module file and do it manually. The - beside the first line means delete that line in the code and + means to add that line in... the other lines referenced in the patch are contextual and shouldnt' be touched, they just help identify where in the code the changes are required.
pete
Comment #39
jim22 commentedPatch #27 worked for me! Thank you all.
Comment #40
itangalo commentedPatch in #27 works fine for me too. Changing issue status.
Comment #41
MichaelCole commentedsee also: http://drupal.org/node/1212718
Verified bug in D7 with dev version from today.
Patch works for me. Thanks :-)
Comment #42
MichaelCole commentedSee also: http://drupal.org/node/239139
Comment #43
robciu commentedPatch #27 worked for me too. Thanks a lot.
Comment #44
merlin2288 commentedsubscribing
Comment #45
good_man commentedI can't accept patch in #27 since I changed it in #239139: Do not hijack the 'all' realm I'll try to find what's going wrong.
Comment #46
xlyz commentedsubscribing.
shouldn't this be critical?
Comment #47
grossmann commentedsubscribing
Comment #48
mrharolda commentedThe patch in #27 solved some(/all?) issues here too!
Comment #49
ngstigator commentedAlso confirm that patch #27 resolved issue.
Comment #50
MichaelCole commentedComment #51
underwearninja commentedPatch in #27 fixed things for me after a rebuild of perms. Thank you.
Comment #52
yaworsk commentedGood to have confirmation about the patch working but it still doesn't conform with good_man's comments about hijacking the 'all' realm in #45. I think we should be turning our attention to that now rather than continuing to confirm/test the patch.
Comment #53
Anonymous (not verified) commentedI was using this module without issues until a few days ago, probably after an update. Suddenly, both anonymous and authenticated users have no valid content access rights (after a rebuild action).
Using the devel node access module, I saw this for anonymous user:
As it says, content_access_all is an invalid setting.
Now tried #27 and it seems to be the solution.
Maybe take down the D7 module for now, since it's really dangerous to use?
Comment #54
good_man commented@morningtime: the module is in *dev* so that means don't use it on production sites, ever.
Comment #55
good_man commentedCommit reverted, please retest and tell me if it the bug is gone.
Comment #56
MichaelCole commentedI arrived at this problem by this bug: http://drupal.org/node/1227090#comment-4769836
Solution was to disable all "pages" in page manager and start enabling them till it worked again.
Comment #57
jesss commentedSubscribing
Comment #58
kevin-bcr commentedSubscribing
Comment #59
Taxoman commentedSubscribing
Comment #60
mtiftSubscribing
Comment #61
gappleThis issue was caused by a commit for #239139: Do not hijack the 'all' realm, which has since been reverted and should be resolved by updating your module to the latest dev version.
Comment #62
jesss commentedI just updated to the latest dev version (released August 9), and anonymous users are still denied access to all content.
Comment #63
gapple@jesss have you used devel module to check the node access records stored in the database? Did you rebuild permissions after updating?
Comment #64
wipeout_dude commentedFor me 7.x-1.2-beta1 appears to be working fine as long as the "book navigation" block is disabled completely.. The block is not critical for me but access control is..
Comment #65
jesss commentedSimply rebuilding the permissions didn't work, but disabling and re-enabling the module, then rebuilding permissions again seems to have done the trick. Thanks!
Comment #66
gapple