Anonymous users can't access anything under /blog.
A fresh install:
Drupal 6.0-beta1
Access to update.php Protected
Configuration file Protected
Cron maintenance tasks Last run 29 min 40 sec ago
You can run cron manually.
Database schema Up to date
Drupal core update status Up to date
File system Writable (public download method)
GD library 2.0 or higher
MySQL database 4.1.11
PHP 4.3.10-22
Unicode library PHP Mbstring Extension
Web server Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-22
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | blog-menu-01.patch | 3.67 KB | desbeers |
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