Closed (duplicate)
Project:
Drupal core
Version:
6.0-beta1
Component:
blog.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2007 at 23:02 UTC
Updated:
1 Oct 2007 at 16:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
stborchertTried to reproduce: /blog is accessible but /blog/1 isn't.
If you set "edit own blog" for "anonymous user" to true (admin/user/access) anonymous user can access all blogs.
Strange behavior that should be documented somewhere.
Comment #2
mejd commentedAdditionally the uid for /blog/<uid> doesn't filter blog entries by user; it shows all entries. Also every user's blog is labelled "My Blog". This is independent of the access restrictions snafu. Should I submit a new issue?
Comment #3
desbeers commentedProblem appears with the split of the blog.module (http://drupal.org/node/159634) that is re-factoring the menu callbacks as well.
The main problem is in the the blog_menu() function. There is a new entry for accessing own blog page; overriding the 'normal' user page (who uses blog/$user/view; something I don't understand). For this entry 'edit own blog' permission is necessary.
Second, %user is used now in the menu and that gives an array of the user; so no need to load them again in the 'blog_page_user' and 'blog_feed_user' functions.
Thirth, blog_page_user is never called. It's blog_page_last instead and that's why it shows all entries.
I removed the 'own blog' entry and altered the 'general' blog/$uid entry to pass an argument. Now all works well; including the feeds that were broken as well. I see no way to add the 'own blog' entry any other way. It did not exist in Drupal 5 as far as I can see; so I don't consider it a big loss :-)
Also fixed one notice as bonus.
Comment #4
chx commentedhttp://drupal.org/node/179519