Bug 1458892

Summary: The credentials for Automate Git Repository wasn't updating the correct authentications type
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: UI - OPSAssignee: mkanoor
Status: CLOSED ERRATA QA Contact: Dmitry Misharov <dmisharo>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: cpelland, dclarizi, dmisharo, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.8.1.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1445522 Environment:
Last Closed: 2017-08-02 17:25:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1445522    
Bug Blocks:    

Comment 2 CFME Bot 2017-06-05 18:48:35 UTC
New commit detected on ManageIQ/manageiq-ui-classic/fine:
https://github.com/ManageIQ/manageiq-ui-classic/commit/a9aceee22bf76d324d29b02dc18db6d2597daa23

commit a9aceee22bf76d324d29b02dc18db6d2597daa23
Author:     Martin Povolny <mpovolny>
AuthorDate: Wed Apr 26 08:52:34 2017 +0200
Commit:     Satoe Imaishi <simaishi>
CommitDate: Mon Jun 5 14:43:37 2017 -0400

    Merge pull request #1157 from mkanoor/set_default_type_for_auth
    
    Incorrect authentication_type being used
    (cherry picked from commit 7d6d8c94029f5ac45275559713788e473280be22)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1458892

 app/services/git_repository_service.rb       | 2 +-
 spec/services/git_repository_service_spec.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comment 3 Dmitry Misharov 2017-07-04 09:10:38 UTC
Verified in 5.8.1.0.20170623170756_3ed4411. Verification steps:
1. Run rake command rake evm:automate:import PREVIEW=false GIT_URL=https://github.com/quarckster/SimpleDomain USERID="user" PASSWORD="password"
2. Add a git repository via UI in "Automation"/"Automate"/"Import / Export"
3. In rails console run GitRepository.first.authentications.collect(&:authtype)

Actual result:
["default"] which is expected.

Comment 5 errata-xmlrpc 2017-08-02 17:25:36 UTC
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.

https://access.redhat.com/errata/RHSA-2017:1758