cloudfoundry / cli

The official command line client for Cloud Foundry
https://docs.cloudfoundry.org/cf-cli
Apache License 2.0
1.75k stars 927 forks source link

`cf push --var value="012345678.91234456678"` treats value as a number #1893

Open squeedee opened 4 years ago

squeedee commented 4 years ago

Please fill out the issue checklist below and provide ALL the requested information.

Describe the bug and the command you saw an issue with I was trying to push with a long string that can be cast as a number, but I wanted the string. Full example with README here

What happened The quoted variable was treated as a number and converted to scientific notation

Expected behavior For the quoted string to be treated as a string and not cast

To Reproduce please see the demo app: https://github.com/cf-platform-eng/cf-cli-test/tree/v0.0.1

Provide more context Mac OSX 10.4.16 CF CLI 6.49.0 through Homebrew

cf-gitbot commented 4 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/171266589

The labels on this github issue will be updated when the story is started.

squeedee commented 4 years ago

It's not a pretty workaround, but cf push --var "value=\"01234567689.1234567890123\"" does create the correct output

squeedee commented 3 years ago

Moved the demo app to https://github.com/squeedee/cf-cli-test

github-actions[bot] commented 6 days ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed.