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

HUB_MOODLEORGHUBURL cannot contain the HTTP Basic Auth credentials

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.1
    • Fix Version/s: 3.7.5, 3.8.2
    • Component/s: Hub
    • Labels:
    • Testing Instructions:
      Hide

      Restricted access credentials needed

      In order to perform the functionality test here, you will need to be given credentials to our staging clone of the sites directory site. Please contact David Mu for details.

      Test

      1. Define custom location of the sites directory in the config.php that has the HTTP Basic Auth credentials defined as a part of the URL
      2. TEST: Check that you can register the site at the custom sites directory
      Show
      Restricted access credentials needed In order to perform the functionality test here, you will need to be given credentials to our staging clone of the sites directory site. Please contact David Mu for details. Test Define custom location of the sites directory in the config.php that has the HTTP Basic Auth credentials defined as a part of the URL TEST : Check that you can register the site at the custom sites directory
    • Workaround:
      Hide

      We had to have the HTTP Basic Auth layer disabled for our staging site because of this bug.

      Show
      We had to have the HTTP Basic Auth layer disabled for our staging site because of this bug.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE, MOODLE_38_STABLE
    • Pull from Repository:
    • Pull 3.7 Branch:
      MDL-68060-37-huburlcompare
    • Pull 3.8 Branch:
      MDL-68060-38-huburlcompare
    • Pull Master Branch:
      MDL-68060-master-huburlcompare

      Description

      Normally, Moodle sites register with https://stats.moodle.org.

      When we need to test new registration features or bug fixes, the constant "HUB_MOODLEORGHUBURL" can be pre-defined in the config.php to contain the alternative URL of the test hub installation.

      During the registration, it is checked that the site was actually registered with the expected directory. To do so, we at the moment simply compare the URL provided by the directory, with the value of the constant.

      This is a problem. We use the HTTP BasicAuth at our testing / staging sites. And so, we would need to define the testing directory URL like (this is an example):

      define('HUB_MOODLEORGHUBURL', 'https://testuser:testpasswd@test-stats.moodle.org');
      

      But then, the registration does not work because the string
      https://testuser:testpasswd@test-stats.moodle.org

      does not match the URL reported by the directory (without the auth credentials)
      https://test-stats.moodle.org

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mudrd8mz David Mudrák (@mudrd8mz)
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Peer reviewer:
              Juan Leyva
              Integrator:
              Sara Arjona (@sarjona)
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              David Mudrák (@mudrd8mz), Helen Foster
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Mar/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 50 minutes
                  1h 50m