Projects::MirrorsController#update - Addressable::URI::InvalidURIError: Invalid port number: "REDACTED"
https://sentry.gitlab.net/gitlab/gitlabcom/issues/616966/
Addressable::URI::InvalidURIError: Invalid port number: "REDACTED"
addressable/uri.rb:1373:in `port='
raise InvalidURIError,
addressable/uri.rb:804:in `block in initialize'
self.port = options[:port] if options[:port]
addressable/uri.rb:2355:in `defer_validation'
block.call()
addressable/uri.rb:796:in `initialize'
self.defer_validation do
addressable/uri.rb:136:in `new'
return new(
...
(162 additional frame(s) were not displayed)
Addressable::URI::InvalidURIError: Invalid port number: "REDACTED"
We are not handling URL exceptions when validating/saving to the database. Instead of showing the user an error message we are giving them a 500.
Edited by Gabriel Mazetto