Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Bug- Assign page roles to group then delete group

UserPost

6:26 am
March 25, 2009


jsherk

Member

posts 20

1

Create a group, and then assign that group as a Page Editor to a page in Page Roles. Now, delete the group, and if you go back to the Page Roles, you still see 'Groups:' beside the Page Editor.

Basically it leaves the deleted group assigned to the page still.

1:41 pm
March 27, 2009


Kevin

Admin

posts 2381

2

Thanks to your report, I've included a fix for this in Role Scoper 1.0.1

12:22 pm
March 28, 2009


jsherk

Member

posts 20

3

I don't think this is fixed yet. There are two problems…

PROBLEM #1

The exising deleted groups that already appeared in the list are still showing up. Maybe you can tell me what to look for in the DB and I can remove them that way?

PROBLEM #2

Go to User-> Groupd and create 3 new groups (say Group A, Group B and Group C) but do NOT assign them to anybody when you first create them.

Also create 2 new pages, say MyPage and MySubPage. Put MySubPage underneath MyPage, so that MyPage is the parent.

Now go to Roles-> Pages and choose "Assign for selected and sub-pages", then tick Group A and Group B and Group C. Scroll down to MyPage and tick Page Editor, and add all three groups to this page (click Update). Now scroll back down and confirm that all three groups show up as Page Editors in MyPage and as {Page Editors} in MySubPage.

Now go to Users-> Groups and delete the middle group (alphabetically), which in my example is Group B. Delete only the ONE group.

Now go back to ROles-> Pages and scroll down to MyPage and you will see an empty set of commas:

Groups: Group A,  , GroupC

Now check MySubPage and will see an empty set of curly brackets:

Groups: {Group A}, {}, {Group C}

12:21 pm
March 30, 2009


Kevin

Admin

posts 2381

4

jsherk said:

I don't think this is fixed yet. There are two problems…

PROBLEM #1

The exising deleted groups that already appeared in the list are still showing up. Maybe you can tell me what to look for in the DB and I can remove them that way?


Yeah, I'm planning to write a "delete orphans" utility, but won't do it until I have some quiet time to design and test it carefully. All role assignments are stored in the user2role2object_rs table. Check for a recent entry with group_id equal to your deleted group(s).

1:00 pm
March 30, 2009


Kevin

Admin

posts 2381

5

jsherk said:

PROBLEM #2


Sure enough, the current version only deletes the group roles if the deleted group had members in it. I tracked down the offending code and will include a fix in the next release.

1:14 pm
March 30, 2009


jsherk

Member

posts 20

6

I am much better at finding bugs than fixing them!!

I think this is a very powerful plugin, and you have definitely put a lot of time into making it very flexible, so keep up the good work!!


About the Agapetry forum

Currently Online:

14 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1181

Posts: 5363

Members:

There are 1173 members

There are 1 guests


Kevin has made 2381 posts

Top Posters:

metal450 - 148

Ragnar - 102

YikYak - 68

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin