Handle invalid import URLs
What does this MR do and why?
Update service to handle invalid URLs
The service was refactored in !190545 (merged) which caused the Import::UrlController#validate to raise 500 errors for invalid URLs.
This change handles the errors and returns a proper message to the users.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Open
/projects/new#import_projectpage - Click on the
Repository by URLbutton - Enter an invalid URL - verify that an error is displayed in the UI
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Rodrigo Tomonari