Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18138] CLI: ti setup, network option, setting proxy to no doesn't clear value from config file

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-08-18T15:54:32.000+0000
Affected Version/sRelease 3.4.1
Fix Version/stitanium 5.0.9
ComponentsCLI
Labelsn/a
ReporterTim Poulsen
AssigneeFeon Sua Xin Miao
Created2014-12-04T18:32:00.000+0000
Updated2017-03-21T18:39:17.000+0000

Description

Steps to reproduce: 1. Run ti setup 2. Choose network 3. When prompted if you're behind a proxy, enter "yes" then enter a proxy address (e.g. http://localhost). Complete the rest of the questions, accepting the defaults. 4. Choose network 5. When prompted, enter "no" to specify that you're not behind a proxy. Complete the rest of the questions. 6. Choose network. The prompts show that "yes" you're behind a proxy. If you examine the ~/.titanium/config.json file you'll see that the proxy address is still listed in the httpProxyServer key. Expectation - if you specify no, the proxy value would be cleared and further prompts by setup would default to no.

Comments

  1. Feon Sua Xin Miao 2015-02-16

    PR: https://github.com/appcelerator/titanium/pull/190 Follow steps to reproduce stated above, the proxy value should be cleared if option No is selected.
  2. Tim Poulsen 2015-02-17

    FR/CR pass, merged
  3. Lokesh Choudhary 2015-06-08

    Followed the above test steps for checking the fix & the proxy value still exists in the config file. Reopening. Environment: Appc Studio : 4.1.0.201505071004 Ti SDK : 4.1.0.v20150605164428 CLI : 4.0.1 Alloy : 1.6.0 MAC Yosemite : 10.10.3 Appc npm : 4.0.0 Appc CLI : 4.0.2-rc2 Node: v0.10.37
  4. Chris Barber 2016-08-18

    I re-verified with Titanium CLI 5.0.9 and it works as expected. Resolving fixed.
  5. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source