# HG changeset patch # User RhodeCode Admin # Date 2022-09-01 19:59:29 # Node ID 06411f9c19086a3186f001599adc03ae61d85afa # Parent 5fe8b3e2c8c9f59f65e9c21d4be07d74f49c1f07 url-validator: make it more explicit credentials could be a case for repo import validator to fail diff --git a/rhodecode/model/validation_schema/validators.py b/rhodecode/model/validation_schema/validators.py --- a/rhodecode/model/validation_schema/validators.py +++ b/rhodecode/model/validation_schema/validators.py @@ -139,7 +139,7 @@ class CloneUriValidator(object): raise colander.Invalid(node, e.message) except Exception: log.exception('Url validation failed') - msg = _(u'invalid clone url for {repo_type} repository').format( + msg = _(u'invalid clone url or credentials for {repo_type} repository').format( repo_type=self.repo_type) raise colander.Invalid(node, msg) diff --git a/rhodecode/model/validators.py b/rhodecode/model/validators.py --- a/rhodecode/model/validators.py +++ b/rhodecode/model/validators.py @@ -624,7 +624,7 @@ def ValidCloneUri(localizer): class _validator(formencode.validators.FancyValidator): messages = { - 'clone_uri': _(u'invalid clone url for %(rtype)s repository'), + 'clone_uri': _(u'invalid clone url or credentials for %(rtype)s repository'), 'invalid_clone_uri': _( u'Invalid clone url, provide a valid clone ' u'url starting with one of %(allowed_prefixes)s')