Bug 1761442

Summary: Component create fails with flag —context when —binary is located in temp folder
Product: OpenShift Container Platform Reporter: Yana Hontyk <yhontyk>
Component: odoAssignee: Tomáš Král <tkral>
Status: CLOSED CURRENTRELEASE QA Contact: Amit <arout>
Severity: medium Docs Contact: Yana Hontyk <yhontyk>
Priority: unspecified    
Version: 4.2.0CC: cdrage, moahmed, oskutka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Mac OS   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-13 13:58:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yana Hontyk 2019-10-14 12:13:34 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:

odo component create wildfly --project test123 --binary /var/folders/c9/fb55pf_568dfd1fzj9w1v4n00000gn/T/test/ROOT.war --context /var/folders/c9/fb55pf_568dfd1fzj9w1v4n00000gn/T/test/ 


Actual results:

/c9/fb55pf_568dfd1fzj9w1v4n00000gn/T/test/ROOT.war --context /var/folders/c9/fb55pf_568dfd1fzj9w1v4n00000gn/T/test/ 
 ✗  Validating component [1s]
 ✗  ../../../../../../private/var/folders/c9/fb55pf_568dfd1fzj9w1v4n00000gn/T/test/ROOT.war binary needs to be inside of the context directory (/var/folders/c9/fb55pf_568dfd1fzj9w1v4n00000gn/T/test/)


Expected results:
component should be created

Additional info:

Comment 1 Amit 2019-11-19 06:47:46 UTC
Fixed via https://github.com/openshift/odo/pull/2308