Bug 1397413

Summary: Error "[MiqAeException::DirectoryNotFound] Git repo dir" in production log when clicked on submit button without selecting "branch or tag" in Automate import/export.
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: eclarizi
Status: CLOSED ERRATA QA Contact: Milan Falešník <mfalesni>
Severity: medium Docs Contact:
Priority: high    
Version: 5.7.0CC: cpelland, dajohnso, gmccullo, hkataria, jhardy, mfalesni, mkanoor, mpovolny, obarenbo, tfitzger
Target Milestone: GA   
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:automate:git
Fixed In Version: 5.7.0.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1386296 Environment:
Last Closed: 2017-01-04 13:16:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Bug Depends On: 1386296    
Bug Blocks:    

Comment 2 CFME Bot 2016-11-22 15:06:25 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/d438e4cc51f85d5524b149161250bcc87d271340

commit d438e4cc51f85d5524b149161250bcc87d271340
Author:     Greg McCullough <gmccullo>
AuthorDate: Mon Nov 21 19:50:04 2016 -0500
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Nov 22 10:04:31 2016 -0500

    Merge pull request #12753 from eclarizio/BZ1386296
    
    Only enable git import submit button when a branch or tag is selected
    (cherry picked from commit c39a7200ad4402f3929488cef9ce6aa530c2f54e)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1397413

 app/assets/javascripts/automate_import_export.js | 29 +++++++--
 app/views/miq_ae_tools/_import_export.html.haml  |  4 +-
 spec/javascripts/automate_import_export_spec.js  | 77 ++++++++++++++++++++++++
 3 files changed, 104 insertions(+), 6 deletions(-)

Comment 3 Milan Falešník 2016-12-09 10:04:16 UTC
Verified in 5.7.0.14.

When you get to the screen with branch/tag selection, the master branch is pre-selected and you cannot select "no branch" in there.

If you go to Tags and the repo has no tags and the dropdown tells you "Nothing selected", the submit button is disabled.

Comment 5 errata-xmlrpc 2017-01-04 13:16:56 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://rhn.redhat.com/errata/RHBA-2017-0012.html