Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-30942

"Add Web Link" does not require you to enter a URL, resulting in 404 errors when clicked

    XMLWordPrintable

    Details

    • 21 Status:
      Resolved
    • 20 status:
      Please Merge
    • Test Plan:
      Hide

      NOTE: if sakai.property content.url.rightsdialog is true (default), the copyright status will be present on the form and is required. This field is buried within the "Add details for this item" panel. If you click the button with this property enabled and without selecting a copyright status, an error message is presented but you may not be aware of where the copyright status field is located.

      • go to Resources > "Add Web Links (URLs)"
      • do not provide any values for anything
      • verify "Add Web Links Now" is not enabled
        • FAIL: button is enabled, no validation, no error message, "link" is created with some random name like "__________________20200214165155"
      • provide URL and name
        • URL must include protocol to be considered valid (ex. https:// or http://)
      • click "Add Web Links Now"
        • PASS: link was created successfully
      • try to provide invalid input for the URL:
      • create multiple links in one go:
        1. one with a valid url but no name
        2. one with a name but no url
        3. one with a name but an invalid url
        4. one with both a name and a valid url
        • use your browser's inspect element to view the HTML for the button, remove the "disabled" attribute; click the button
        • PASS: validation error messages are presented indicating URL(s) is invalid, and required fields
      Show
      NOTE: if sakai.property content.url.rightsdialog is true (default), the copyright status will be present on the form and is required. This field is buried within the "Add details for this item" panel. If you click the button with this property enabled and without selecting a copyright status, an error message is presented but you may not be aware of where the copyright status field is located. go to Resources > "Add Web Links (URLs)" do not provide any values for anything verify "Add Web Links Now" is not enabled FAIL: button is enabled, no validation, no error message, "link" is created with some random name like "__________________20200214165155" provide URL and name URL must include protocol to be considered valid (ex. https:// or http:// ) click "Add Web Links Now" PASS: link was created successfully try to provide invalid input for the URL: create multiple links in one go: one with a valid url but no name one with a name but no url one with a name but an invalid url one with both a name and a valid url use your browser's inspect element to view the HTML for the button, remove the "disabled" attribute; click the button PASS: validation error messages are presented indicating URL(s) is invalid, and required fields

      Description

      you have the ability to create web links just by entering a title and leaving the url field blank. This will create a web link item that, when clicked, results in a 404 error.

      Screenshot: http://www.screencast.com/t/bDfvfThYrxFU

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                kelseymolly Molly Kelsey
                Reporter:
                kyle.blythe Kyle Blythe
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration