I have stumbled upon a major issue which is definitely due to Content Access. I went as far as deactivating all contrib modules, activating them one by one, testing, etc, all of this twice and in reverse.

What happens is that when I build a display using Views with a simple filter (say, Node Type), I get the same node displayed for each role that a user has. If a user has 3 roles (and each of them can view that node type), then the node will be displayed 3 times in the list (this happens in any Views display style : fields, table, node...)

Some more information : the site is set up with several roles (e.g. group1, group2, group3, group4), but a user can belong to one or more of these groups. If, in a node type Access Control tab, I select group1, 2 & 3 under View Any Content, a member who belongs to all of the above 3 groups will see the content three times in a Views display (whether Views Access Restriction is on or not). If I deselect one of the roles in the Access Control tab, the same user will see the content twice.

I hope I've described the problem clearly enough. Is there something I'm not doing correctly or is this a bug?

Thanks.

Comments

Junro’s picture

I just have this issue updating Drupal 6.14 from 6.13. Did you update Drupal 6.14 too?

talino’s picture

Indeed I have. I temporarily solved this by checking "Distinct" in all relevant Views Displays, but I would really like to know why Content Access does this, because I don't think it should :)

Junro’s picture

Your theory about roles doesn't exactly apply with me. Some nodes are displayed 1, 2, 3 or 4 times.
ex 4 3 4 3 2 1 4 3.

But you're right, I don't have the same duplicate display with user not having the same number of roles.

Junro’s picture

Checking "Distinct" is deffinitly not a solution as you said. Very critical issue...

Junro’s picture

This is not a Content Access issue, I don't have this module on my configuration.

Junro’s picture

Project: Content Access » Drupal core
Version: 6.x-1.2 » 6.14
Component: Code » database system
Status: Active » Closed (duplicate)
talino’s picture

@Junro : The Views issue (http://drupal.org/node/579892) does seem related to this one (and I just posted there also), but I'd still like to point out that I checked and unchecked *every* contrib module on the site and only when Content Access was activated did the issue appear.

Junro’s picture

All we have to do is to wait the next Drupal core release with the bug fixe.

Meanwhile, I have reinstalled 6.13 (the bug disappears)

talino’s picture

I'm not skilled enough to say whether this is a Drupal or Content Access issue. For the time being I'll stick to 6.14 simply because switching versions is such a hassle, especially since I have an essential patch applied (http://drupal.org/node/181003#comment-2015258) and that using DISTINCT works for now.

I would have happily stayed with 6.13 if I didn't get red warnings all over the place.

seddonym’s picture

I've experienced a similar problem with Domain Access. Just installed 6.x-2.0-rc9 on Drupal 6.14, and for certain roles (less privileged ones?) the nodes are appearing twice in views. Also got two domains set up, I don't imagine that's a coincidence. DISTINCT fixed it for now.

paljsingh’s picture

In my case, the duplicate entries got fixed after I removed the NodeAccess module.

-Jitender Pal Singh

omar alahmed’s picture

It's content access module issue, I uninstalled it, then the duplicated contents issue are resolved.