Resources

My Agape try

Your Agape try


Support Forum

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Private pages displaying to logged-out users!

UserPost

3:48 am
July 21, 2008


flammobammo

Member

Adelaide, Australia

posts 5

1

Kevin,

You really have been pumping out the releases lately! I've just updated both of my websites that are also updated to WP2.6.  I have a major issue with the blog in which I have private pages - they are now visible to people that aren't logged in! 

In fact, it's stranger than that. Normally I have main pages: apples, bannanas, carrots.  The apples page is private, but I have assigned a group of users with reader access to be able to read it.  The apples page has sub-pages of juicy-apples and tasty-apples, with the same permissions as the apples page.

Normally, my theme displays the list of pages, and when you click on apples (which you normally only see when logged in) the juicy-apples and tasty-apples sub-pages appear below the list of main pages. This was working absolutely fine with 0.9.17 (albeit with a different bug which is now fixed in 0.9.22). Then I upgraded to 0.9.22 and something BAD has happened.

When I'm logged in as a user from the group with reader access to apples and it's sub-pages, everything is fine. But when I log out to test that everything is secure with 0.9.22, I have visible in the list of main pages: Home, apples, juicy-apples, tasty-apples.  I can click on these protected page and sub-pages and everything is completely visible to any logged-out user! The non-protected main pages are not displaying, they have instead been replaced by the protected page and sub-pages which seem to have “hijacked” the display of the non-protected pages! Also, the protected sub-pages (juicy-apples and tasty-apples) are displaying as if they were main pages, not sub-pages (still only to the logged-out user - seems to be fine with the logged-in user).

The theme I am using was published in 2006, so I might be using an old piece of code for displaying page lists - but I then tried the WP2.6 default theme, and the same bad thing is happening.

Since we have been corresponding I have developed a level of trust with you, and am willing to provide you with admin access to this offending blog if you would like to see first-hand what is going on.  Alternatively, if you would like I can email you screenshots of what's going on.

Hope this helps!

Regards,

Tom


3:52 am
July 21, 2008


flammobammo

Member

Adelaide, Australia

posts 5

2

Hmmm I feel like eating apples! Laughing

8:09 am
July 21, 2008


Kevin

Admin

posts 1326

3

flammobammo said:

Kevin,

You really have been pumping out the releases lately! I've just updated both of my websites that are also updated to WP2.6. 


I had some catching up to do and not much time to do it before needing to shift focus to a paid consulting gig.  For Role Scoper, I want to make good on existing claims and expectations by finding bugs and/or plugin conflicts, following WP revisions and documenting or eliminating complex/non-intuitive behavior before it aggrevates users.  This report makes me fear I'm trying to do too much and should have held these new revisions until there was more time to test with various configurations.

However, so far I am not able to reproduce the error.  Please do e-mail me a login so I can check out your configuration.

6:12 pm
July 21, 2008


Kevin

Admin

posts 1326

4

Tom,

Here's what I found when I logged in to your blog:

  • “Apples” were published with the WordPress “private” status.  Its subpages “Tasty Apples”, “Juicy Apples”, etc. were also published but not marked “private”.
  • Further, none of the pages had an “exclusive” setting in the Readers role tab.

Either of the above would have sufficed to hide the pages from anonymous readers.  Without either setting, I'm afraid it's operator error.  I will explain why you were getting away with it before:

  • Without Role Scoper, the pages only seemed protected, and only because your theme has “depth=1″ in the wp_list_pages call.  Otherwise WordPress would have dropped those pages down to the first visual menu level by default.  Even with the theme “filtering”, each of the subpages was still exposed by direct URL.  I would argue that the list “filtering” here actually represents a WP bug… more below.
  • With older versions of Role Scoper, same story - the pages were only protected from inclusion in the topbar listing.
  • With the Role Scoper update, still not protected but now also included in the topbar listing.  That's because I changed the list_pages filtering scheme so that when a parent page is hidden, its public subpages will be visually hooked to their next viewable ancestor (possibly Main) and maintain visual association with their subpages.  Otherwise (without a depth argument), WP just flattens all visible subpages, sub-subpages, etc. to the first level.  To do this, I had to actually modify (in temporary memory) the parent id for affected subpages, so the WP quirk I describe below no longer applied.
  • To me, wp_list_pages(depth=N) indicates a desired visual depth for the rendered menu.  But even though WP normally draws any depth of “orphaned” subpages all at the first level (as if a child of Main), yet the depth argument has the effect of non-listing those pages whose actual depth is greater than N.

So, yes, your pages did jump up a level, by design.  The other pages weren't kicked out, just pushed out of view.  Now that they are private to WP and/or “exclusive” to Role Scoper, they won't be listed or exposed to anonymous readers at all.

Does that make sense?  Maybe you can imagine how this new Role Scoper behavior which was so vexing to you could be a great benefit to sidebar-listed (or topbar popup) deep page hierarchies where some users gain visibility beginning at a certain branch.

Well, if I wasn't such a nice guy I'd ask you what you feel like eating now ;)



Reply to Topic: Private pages displaying to logged-out users!

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 12 + 1        (Required)

Topic Reply:


 

About the Agapetry forum

Currently Online:

11 Guests

Maximum Online: 88

Forums:

Groups: 2

Forums: 7

Topics: 667

Posts: 3053

Members:

There are 601 members

There are 1 guests


Kevin has made 1326 posts

Top Posters:

metal450 - 98

YikYak - 58

Ragnar - 36

Daisy - 35

LorenW - 33

Administrator: Kevin | Moderators: Kevin