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

Reverse proxy combined with bogus URLS in forum causes bad redirections

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-62571_master
    • Testing Instructions:
      Hide
      1. Create a forum.
      2. Add a new discussion topic.
      3. Confirm you are redirected to mod/forum/view.php and see the discussion you created.
      4. Click on the discussion.
      5. Delete the first post.
      6. Confirm you are redirected to mod/forum/view.php and see no discussions.
      Show
      Create a forum. Add a new discussion topic. Confirm you are redirected to mod/forum/view.php and see the discussion you created. Click on the discussion. Delete the first post. Confirm you are redirected to mod/forum/view.php and see no discussions.

      Description

      Hi,

      We need the new recordRTC feature in our prod environment. Thing is it is broken when used with a reverse proxy.

      Step to reproduce:

      • Ubuntu 16.04 server
      • NGINX as a reverse proxy
      • Install a moodle 3.5 instance with apache2 + mysql
      • Serve moodle through nginx proxy (set the config accordingly)
      • Create or use any course
      • Create a forum activity
      • Create a forum thread
      • Record a video/audio file with the recordRTC feature
      • Submit the thread with the recorded file
      • Error in redirection

       
      You can see the error on the screenshot attached below.
       
      There is no error log on apache2 or nginx side.
      Ready to collaborate with the team to try to fix this issue.

        Attachments

          Activity

            People

            Assignee:
            markn Mark Nelson
            Reporter:
            focom focom
            Peer reviewer:
            Simey Lameze Simey Lameze
            Integrator:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Tester:
            Janelle Barcega Janelle Barcega
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Jul/18

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 11 minutes
                11m