#2768 BlogPostController getting wrong doc from mongo

v1.0.0
closed
sf-1 (616)
General
nobody
2015-08-20
2011-09-08
No

To repro:

On sandbox as admin1, go to /u/admin1, install blog tool, create post with title 'Test' and content 'test'. Mark as Published and save.

Now go to /u/test-user, install blog tool, create post with title 'Test' and content 'testing'. Mark as Published and save.

When the page refreshes, you'll be looking at admin1's 'Test' post instead of test-user's. The content will be 'test' instead of 'testing', and the Edit link will be pointing to /u/admin1/blog/...

Related

Tickets: #2684

Discussion

  • forge:tv/2768

    To test, follow the repro steps above, and at the end make sure you are looking at the test-user post instead of the admin1 post.

     
    • status: in-progress --> code-review
    • assigned_to: Tim Van Steenburgh --> Wayne Witzel III
     
  • Anonymous - 2011-09-09

    Originally by: algorithms

    Looks good, all one line of it :). Tested on sb-9014 and merged to dev.

    [root@h9v9014 ForgeBlog dev]# nosetests -x
    ................
    ----------------------------------------------------------------------
    Ran 16 tests in 53.167s
    
    OK
    
    • status: code-review --> closed
    • assigned_to: Wayne Witzel III --> Tim Van Steenburgh
     

Log in to post a comment.