Bug 1445522 - The credentials for Automate Git Repository wasn't updating the correct authentications type
Summary: The credentials for Automate Git Repository wasn't updating the correct authe...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.9.0
Assignee: mkanoor
QA Contact: Dmitry Misharov
URL:
Whiteboard:
Depends On:
Blocks: 1450217 1458892
TreeView+ depends on / blocked
 
Reported: 2017-04-25 21:15 UTC by mkanoor
Modified: 2019-08-06 20:06 UTC (History)
7 users (show)

Fixed In Version: 5.9.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1450217 1458892 (view as bug list)
Environment:
Last Closed: 2018-03-06 15:21:44 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description mkanoor 2017-04-25 21:15:35 UTC
Description of problem:
We support multiple authentication types, the GitRepository was supposed to be using the default type, it was using a type called values.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Create a GitRepository with a valid URL from the rake command
2. From the UI Automate Import/Export target the same Repository, change the userid/password
3. It would update the incorrect credentials.

Actual results:
We should have a single credential instead of multiple, the UI creates one called values the rake task creates one called default.

Expected results:
A single credential type called default should be used for a single Git Repository

Additional info:

Comment 4 CFME Bot 2017-04-26 06:53:16 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:
https://github.com/ManageIQ/manageiq-ui-classic/commit/84b1ce70a15aaf34cb63a15fdb569239574b9f58

commit 84b1ce70a15aaf34cb63a15fdb569239574b9f58
Author:     mkanoor <mkanoor>
AuthorDate: Tue Apr 25 17:18:27 2017 -0400
Commit:     mkanoor <mkanoor>
CommitDate: Tue Apr 25 17:18:27 2017 -0400

    Incorrect authentication_type being used
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1445522
    
    We should be using the :default authentication type

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

Comment 7 Milan Falešník 2017-11-03 10:10:22 UTC
Verified in 5.9.0.5 using https://bugzilla.redhat.com/show_bug.cgi?id=1458892#c3


Note You need to log in before you can comment on or make changes to this bug.