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

The url validation on evidence form is too strict

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Login as admin or any user who has access to the learning plans
      • Go to Profile > Learning plans
      • Click on Evidence of prior learning.
      • Edit or add an evidence.
      • Check help button appears beside URL label.
      • Click on help button to see the message.
      • In URL enter a valid url starting with "http://" and save the evidence.
      • You must not get an error message about URL.
      • In the list click on URL to verify you have access to it.
      • Edit or add an evidence.
      • In URL enter a valid url starting with "https://" and save the evidence.
      • You must not get an error message about URL.
      • In the list click on URL to verify you have access to it.
      • Edit or add an evidence.
      • In URL enter a url that doesn't start with "https://" or "http://" and save the evidence.
      • You must get an error message "The URL is not valid. Make sure it starts with http:// or https://'.
      Show
      Login as admin or any user who has access to the learning plans Go to Profile > Learning plans Click on Evidence of prior learning. Edit or add an evidence. Check help button appears beside URL label. Click on help button to see the message. In URL enter a valid url starting with "http://" and save the evidence. You must not get an error message about URL. In the list click on URL to verify you have access to it. Edit or add an evidence. In URL enter a valid url starting with "https://" and save the evidence. You must not get an error message about URL. In the list click on URL to verify you have access to it. Edit or add an evidence. In URL enter a url that doesn't start with "https://" or "http://" and save the evidence. You must get an error message "The URL is not valid. Make sure it starts with http:// or https:// '.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-53877-master

      Description

      If for some reason I've add www.moodle.com to the url field, it says the URL is invalid. I think that field validation is too strict. If I add http:// to the url, it works. But I think it should not be that strict.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sergeg55 Serge Gauthier
                Reporter:
                lameze Simey Lameze
                Peer reviewer:
                Jun Pataleta
                Integrator:
                David Monllaó
                Tester:
                Frédéric Massart
                Participants:
                Component watchers:
                Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Barbara Ramiro, Bas Brands
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16