This restores the behavior the upload-your-own form had before we migrated URL validation from the Perma application over to the Scoop API.
During that process, we accidentally removed all URL validation from the upload-your-own form, making it possible to upload links with submitted_url set to arbitrary strings. In addition to that being just plain undesirable, if certain strings were provided, it caused downstream errors, for instance, when the submitted URL was converted to a surt.
Fixes ENG-652.
This restores the behavior the upload-your-own form had before we migrated URL validation from the Perma application over to the Scoop API.
During that process, we accidentally removed all URL validation from the upload-your-own form, making it possible to upload links with
submitted_url
set to arbitrary strings. In addition to that being just plain undesirable, if certain strings were provided, it caused downstream errors, for instance, when the submitted URL was converted to a surt.Now, you will once again see a validation error:
I adjusted the test suite accordingly.