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

HUB_MOODLEORGHUBURL cannot contain the HTTP Basic Auth credentials

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.7.5, 3.8.2
    • 3.8.1
    • Hub
    • MOODLE_38_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-68060-master-huburlcompare
    • 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.
    • 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

    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

              mudrd8mz David Mudrák (@mudrd8mz)
              mudrd8mz David Mudrák (@mudrd8mz)
              Juan Leyva Juan Leyva
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Janelle Barcega Janelle Barcega
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

                    Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.