Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-36713

Guests are told blogging is disabled and an exception is thrown if they access a users blog

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4, 3.1
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: Blog
    • Labels:
    • Testing Instructions:
      Hide

      To test this issue, blogs need to be enabled and the blog level set to "All site users can see all blog entries"

      1. Log in as a user and create a new blog.
      2. Publish this blog to "Anyone on this site"
      3. Make a note of the users ID ($USER->id)
      4. In another browser, navigate to blog/index.php?userid=XX where XX is the user's ID recorded in step 3.
      5. Login as guest.
        • Verify that you get a meaningful error. (No guests here!)
      6. Try navigating to the blog preferences page (/blog/preferences.php)
        • Verify that you get a meaningful error. (No guests here!)
      7. Login as a valid user.
      8. Navigate to blog/index.php?userid=XX where XX is the user's ID recorded in step 3.
        • Verify that you see the user's blog entry.
      9. Try navigating to the blog preferences page (/blog/preferences.php)
        • Verify that you see the logged in user's blog preferences page.
      Show
      To test this issue, blogs need to be enabled and the blog level set to "All site users can see all blog entries" Log in as a user and create a new blog. Publish this blog to "Anyone on this site" Make a note of the users ID ($USER->id) In another browser, navigate to blog/index.php?userid=XX where XX is the user's ID recorded in step 3. Login as guest. Verify that you get a meaningful error. ( No guests here! ) Try navigating to the blog preferences page (/blog/preferences.php) Verify that you get a meaningful error. ( No guests here! ) Login as a valid user. Navigate to blog/index.php?userid=XX where XX is the user's ID recorded in step 3. Verify that you see the user's blog entry. Try navigating to the blog preferences page (/blog/preferences.php) Verify that you see the logged in user's blog preferences page.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-36713_m32v2

      Description

      when viewing blog/index.php?userid=3 as a guest, I am told blogging is disabled. Would be nice if the error message was accurate to the situation.

        Attachments

          Activity

            People

            Assignee:
            sbourget Stephen Bourget
            Reporter:
            phalacee Jason Fowler
            Peer reviewer:
            Simey Lameze
            Integrator:
            Dan Poltawski
            Tester:
            Jun Pataleta
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Sep/16