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

Q&A forums incorrectly display a "post cannot be viewed by you" error in some circumstances

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Create a new course
      • Enrol one user as teacher
      • Enrol two users as students (u1 and u2)
      • Access to the course with the teacher and create a new forum configured as "Q and A forum"
      • Still as teacher, add a question (new post in that forum)
      • Now, access to the course as u1 and reply to the question/post posted by the teacher
      • Now, connect to the site using the Moodle mobile app as u2, go to the forum and confirm that:
        • You can see the "Q and A forum" original question by the teacher
        • You don't see the original u1 post yet
        • You don't see any errors in the page
      Show
      Create a new course Enrol one user as teacher Enrol two users as students (u1 and u2) Access to the course with the teacher and create a new forum configured as "Q and A forum" Still as teacher, add a question (new post in that forum) Now, access to the course as u1 and reply to the question/post posted by the teacher Now, connect to the site using the Moodle mobile app as u2, go to the forum and confirm that: You can see the "Q and A forum" original question by the teacher You don't see the original u1 post yet You don't see any errors in the page
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE
    • Pull from Repository:
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-70863-310
    • Pull 3.11 Branch:
      MDL-70863-311
    • Pull Master Branch:
      MDL-70863-master

      Description

      If a student tries to view a discussion of a Q&A forum and other students have already posted in that discussion, the WebService mod_forum_get_discussion_posts throws an "Invalid response value" error. The reason is that timecreated is null, and the WS doesn't allow it to be null.

      In web the student sees the message "This post cannot be viewed by you, probably because you have not posted in the discussion, the maximum editing time hasn't passed yet, the discussion has not started or the discussion has expired.".

        Attachments

        1. MDL-70863.jpg
          MDL-70863.jpg
          174 kB
        2. QAForum_browser_student.png
          QAForum_browser_student.png
          326 kB
        3. QAForum_browser_studentApp.png
          QAForum_browser_studentApp.png
          358 kB
        4. QAForum_student_app_394.jpg
          QAForum_student_app_394.jpg
          25 kB
        5. QAForum_teacher.png
          QAForum_teacher.png
          328 kB

          Issue Links

            Activity

              People

              Assignee:
              jleyva Juan Leyva
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Dani Palou Dani Palou
              Integrator:
              Jun Pataleta Jun Pataleta
              Tester:
              Gladys Basiana Gladys Basiana
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 46 minutes
                  3h 46m