Bug 1006154

Summary: [origin_ui_92] Set 25 variables during creating app with -e/--env options display ugly indent and display environment variables as a wrong order
Product: OpenShift Online Reporter: weiwei jiang <wjiang>
Component: ocAssignee: Jordan Liggitt <jliggitt>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.xCC: jliggitt, wjiang, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-24 03:23:10 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:
Attachments:
Description Flags
screenshot with both with and without -e/--env option none

Description weiwei jiang 2013-09-10 06:45:26 UTC
Created attachment 795855 [details]
screenshot with both with and without -e/--env option

Description of problem:
When set 25 variables during creating app with -e/--env option, display ugly indent, and environment variables output as a wrong order.


Version-Release number of selected component (if applicable):
devenv_3762
rhc-1.14.4-build_from_3762

How reproducible:
always

Steps to Reproduce:
1.Set 25 variables during creating app without -e/--env option
rhc app create app2 php-5.3 as=1 asdf=2 adfasdf=3 adsfds=4 adsf=5 adf=6 asadf=7 asdfasdf=8 mzmz=9 adsfsad=10 adfsdf=11 asfdasdaf=12 aasdfasdf=13 jkj=14 iei=15 oqo=16 kxl=17 kjakl=18 kjadskllkj=19 askdfjla=20 amkk=21 sdkfasdklf=22 erioweoi=23 dkfjalkjsdf=24 kdlfjalsdjf=25

2.Set 25 variables during creating app with -e/--env option
rhc app create app1 php-5.3 -e as=1 asdf=2 adfasdf=3 adsfds=4 adsf=5 adf=6 asadf=7 asdfasdf=8 mzmz=9 adsfsad=10 adfsdf=11 asfdasdaf=12 aasdfasdf=13 jkj=14 iei=15 oqo=16 kxl=17 kjakl=18 kjadskllkj=19 askdfjla=20 amkk=21 sdkfasdklf=22 erioweoi=23 dkfjalkjsdf=24 kdlfjalsdjf=25

3.Check the output content

Actual results:
As attachment

Expected results:
It should display as same as without -e/--env option

                         
                         
Additional info:

Comment 1 Jordan Liggitt 2013-11-13 14:10:54 UTC
There are two issues here:

1) Line wrapping is not working correctly
2) Env vars specified using -e are added to the end of the env var list... should probably sort the env var list to ensure consistent order

Comment 2 Fabiano Franz 2013-11-13 17:50:10 UTC
Can you confirm if the line indent issue is specific to Windows? I'm trying in Fedora Terminal with different window sizes and it doesn't happen.

Comment 3 Jordan Liggitt 2013-11-13 18:04:28 UTC
Happens for me on Fedora

Comment 4 Jordan Liggitt 2013-11-20 19:03:13 UTC
Variable ordering is working as expected.

Indent issue will be fixed in https://github.com/openshift/rhc/pull/514

Comment 5 openshift-github-bot 2013-11-21 19:15:49 UTC
Commit pushed to master at https://github.com/openshift/rhc

https://github.com/openshift/rhc/commit/54f5492494028d58378f4154e48df941cc1f99f0
Fix bug 1006154: app create indent

Comment 6 weiwei jiang 2013-11-22 05:49:03 UTC
Tried on devenv_4061 with rhc-1.18.0 build from devenv_4061, and indent issue can not reproduce, so if the wrong order issue will not fixed, I will verified this bug. Thx.

Comment 7 Jordan Liggitt 2013-11-22 22:27:00 UTC
We will not change the ordering issue