Closed (fixed)
Project:
Workspace
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2005 at 08:04 UTC
Updated:
15 Jul 2009 at 17:20 UTC
With workspace and nodeperm role installed, the latest workspace module (CVS July 27) shows several duplicates of every node in the admin's workspace (all content has been created by the admin account, so nothing is assigned through nodeperm). I'm running Drupal 4.6.2.
Comments
Comment #1
bomarmonk commentedTo clarify this issue: I'm getting redundant listings for nodes when running nodeperm_role with Drupal 4.6.2 and the workspace module. For example, I'll have uploaded a single image, but it will be listed around twenty times in the workspace list. The content list at admin/node lists nodes correctly. Any ideas?
Moving this up to critical, as this issue makes workspace very unuseable.
Comment #2
bomarmonk commentedOkay, I reverted back to the old 4.5 version of workspace and it seems to work fine, but without the support for nodeperm role. No redundant listings of nodes! So this is definitely a problem with nodeperm role and workspace working together.
Comment #3
bomarmonk commentedFor the love of Drupal... can anyone suggest a fix for this? Thanks in advance!
Comment #4
jvandyk commentedAm aware of this. Have not had time to fix it. Adding support to simpleaccess.module in workspace cvs may be the way out.
Comment #5
bomarmonk commentedI switched to simple access, and now I realized you were talking about future compatibility and not something to test now. Oops.
Comment #6
bomarmonk commentedDo you think there will be added support for simple access? I like simpleaccess just as well as nodeperm_role, so either solution would work for me. The bottom line: workspace brings everything together for the users of my site if I can get it to work with either access module. I'm just voicing my support for this added functionality and thanking you for the great module.
Comment #7
jvandyk commentedSupport for simple_access is a good idea. I have not had time to write it. If someone wants to supply a patch, that would be great.
Comment #8
brick commentedv1.16.2.2 here and duplicating the entries for admin. this couldn't be as simple as a SELECT DISTINCT, could it? (i'm not root on our server, so i can't clear the PHP cache of the module code.)
Comment #9
bomarmonk commentedAny luck with this? Any alternatives? This functionality seems fairly important for users who have permission to edit content that they did not create (therefore it doesn't just show up in their "content" listing-- only their created nodes do this, to my understanding-- so we need workspace!). So I would make the argument that this could be pretty important for certain sites (and if I knew more about PHP or had the available time to learn it, I might do more than talk. I humbly appeal to those with the power of PHP! And of course all of you don't have time either-- I know, I know). Thanks in advance for patches from the sky (aka manna from heaven).
Comment #10
bomarmonk commentedComment #11
bomarmonk commentedChanging issue to a feature request for 4.7. See new issue.
Comment #12
bomarmonk commentedI am reactivating this, because the author of node_perm role is willing to work with the author of workspace to solve this issue... perhaps this could be related to a wider access problem with how workspace functions?
Comment #13
bomarmonk commentedThis is also still an issue with Drupal 4.7..
Comment #14
sigsby commentedI ran into the duplicate entry problem while hacking for use with simple_access. See http://drupal.org/node/59924 for the simple_access patch, which also fixed the duplicate entry problem. Using DISTINCT didn't work (though I can't remember exactly why). I did a 'GROUP BY n.nid' then SUM on the grant fields. Here's that part of the patch:
I haven't really had a chance to review this, just needed it to work right away for a deadline. I'll will continue working on this patch as my time allows and will post on the other issue (http://drupal.org/node/59924).
Comment #15
sigsby commentedSorry, forgot to mention that the patch I'm working on is for 4.7, specifically from:
Comment #16
jbjaaz commentedThe patch certainly removes the duplicates and more. Using nodeperm_role, user1 has view and edit permissions for page1, which was authored by user2. I would assume that page1 will be in user1's workspace list. Applying the patch, makes the workspace empty for user1.
Comment #17
jbjaaz commentedabove is says drupal 4.6, I'm using 4.7
and from the module file...
// $Id: workspace.module,v 1.21.2.7 2006/05/07 19:44:00 jvandyk Exp $
Comment #18
frank ralf commentedClosed as this thread pertains to an outdated version. Please open a new issue if problem persists with current release.
tia
Frank