Skip to content
Snippets Groups Projects
Commit 1917aa98 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Merge branch '49272-sanitize-git-url-in-import-errors' into 'master'

Resolve "Credentails used for repository import are visible inside the Sidekiq logs (Background Jobs)"

See merge request gitlab-org/gitlab-ce!20641
parents cc540bb2 d32802c7
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -25,7 +25,7 @@ module Projects
 
success
rescue => e
error("Error importing repository #{project.import_url} into #{project.full_path} - #{e.message}")
error("Error importing repository #{project.safe_import_url} into #{project.full_path} - #{e.message}")
end
 
private
Loading
Loading
---
title: Sanitize git URL in import errors
merge_request:
author: Jamie Schembri
type: fixed
Loading
Loading
@@ -69,7 +69,7 @@ describe Projects::ImportService do
result = subject.execute
 
expect(result[:status]).to eq :error
expect(result[:message]).to eq "Error importing repository #{project.import_url} into #{project.full_path} - The repository could not be created."
expect(result[:message]).to eq "Error importing repository #{project.safe_import_url} into #{project.full_path} - The repository could not be created."
end
 
context 'when repository creation succeeds' do
Loading
Loading
@@ -141,7 +141,7 @@ describe Projects::ImportService do
result = subject.execute
 
expect(result[:status]).to eq :error
expect(result[:message]).to eq "Error importing repository #{project.import_url} into #{project.full_path} - Failed to import the repository"
expect(result[:message]).to eq "Error importing repository #{project.safe_import_url} into #{project.full_path} - Failed to import the repository"
end
 
context 'when repository import scheduled' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment