Bug 1115386 - Cloning app adds a stray space to environment variable values
Summary: Cloning app adds a stray space to environment variable values
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-02 09:22 UTC by Dominic Cleal
Modified: 2015-05-15 02:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-15 10:31:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dominic Cleal 2014-07-02 09:22:49 UTC
Description of problem:
When cloning an application, all environment variables get a space appended to their values.  This causes problems with passwords etc.

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

How reproducible:
Always

Steps to Reproduce:
1. rhc app create diy diy-0.1
2. rhc env set EMAIL_PASSWORD=foo -a diy
3. rhc ssh diy 'echo a${EMAIL_PASSWORD}a'
4. rhc create-app diy2 --from-app diy
5. rhc ssh diy2 'echo a${EMAIL_PASSWORD}a'

Actual results:
(3) prints:
"afooa"

(5) prints:
"afooa "

Expected results:
Both print "afooa"

Comment 1 Dominic Cleal 2014-07-02 09:25:39 UTC
https://github.com/openshift/rhc/pull/616

Comment 2 Fabiano Franz 2014-07-02 23:49:54 UTC
Fixed in https://github.com/openshift/rhc/pull/616

Comment 3 openshift-github-bot 2014-07-03 00:57:14 UTC
Commit pushed to master at https://github.com/openshift/rhc

https://github.com/openshift/rhc/commit/9343d512df88a8f2dd0125deb42d58ec84d700f1
Bug 1115386 - remove stray space from cloned app environment variables

Comment 4 weiwei jiang 2014-07-04 02:26:13 UTC
Checked with rhc-1.27.2 on INT(devenv_4938), and can not reproduce this issue, so verify this.


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