[wpmu-trac] [WordPress MU Trac] #1150: blog overrules page from primary blog without warning

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Nov 5 17:03:09 UTC 2009


#1150: blog overrules page from primary blog without warning
------------------------+---------------------------------------------------
 Reporter:  BjornW      |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  high        |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 When using WP MU 2.8.4 with sub directories it seems one can override the
 main blogs pages by creating a blog with the same name without any
 warning. I presume most people would not expect this and thus I'd consider
 this a bug.

 For instance assume the following:

 You have a WPMU site set using sub directories available at
 http://mysite.dev/. You're using the primary blog as your website with
 mostly pages. One of those pages is called "Donation". You allow other
 people to register and create a blog. Someone creates a blog called
 "Donation" and without warning the previous existing page "Donation" has
 been redirected to the blog "Donation".

 Steps to reproduce this:

 1. Create a Page with the title "Donation" in the primary (first) blog
 2. Check the Page's existence by visiting it.
 3. Create a Blog in the Site admin with the exact same name as the
 previously created Page, in this case "Donation"
 4. Try to visit the Page again. You've been redirect to the blog you just
 created.

 In the worst case, if you allow new blogs to be created upon registration
 someone can override the main blog's pages and redirect them to a blog
 created by them. That could become quite nasty.

 Suggested solution:

 The quickest solution and IMHO the most elegant one is to check existing
 page names when creating a new blog and fail when a page of the primary
 blog conflicts with a new blog instead of silently overriding the page.

 In the future and for the WP MU roadmap (is there any?) it would be great
 if the permalinks in WP MU would allow for more fine grained control in
 setting up routes to blogs, blogpages, blogposts etc etc.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1150>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list