New commit detected on ManageIQ/manageiq/euwe:
Author: Martin Povolny <firstname.lastname@example.org>
AuthorDate: Wed Apr 26 08:52:34 2017 +0200
Commit: Satoe Imaishi <email@example.com>
CommitDate: Thu May 11 17:17:51 2017 -0400
Merge pull request #1157 from mkanoor/set_default_type_for_auth
Incorrect authentication_type being used
(cherry picked from commit 7d6d8c94029f5ac45275559713788e473280be22)
app/services/git_repository_service.rb | 2 +-
spec/services/git_repository_service_spec.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Reproducer steps are unclear, I am trying to reproduce the erroneous behaviour on 126.96.36.199 and from the description of the bug I cannot figure out what should I look for since when I import a github repo without credentials via rake and then I try to do the same repo in the UI but I specify bad credentials, it just simply works.
This requires creating the credential from 2 different sources
(1) rake command
The UI wasn't setting the same authtype as the rake command.
If you check the credential count you should see only one for the GitRepository.
Without this fix in you would have seen 2.
From a rails console, if you have a single GitRepository you can run this command
Without the fix the result would be ["default", "values"]
With the fix it should be just ["default"]
In an existing environment where you have run this previously we won't delete the "values" authentication type, it would sit around we won't use it.
I can see only the ["default"] in 188.8.131.52 when using both rake and UI import.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.