You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug and the command you saw an issue with
cf env shows special chars like '<' and '>' in VCAP_SERVICES not correctly.
What happened
stephan@WDFN34095835A:~$ cf env testapp
Getting env variables for app testapp in org uptime / space test as D047883...
OK
System-Provided:
{
"VCAP_SERVICES": {
"myservice": [
{
"binding_name": null,
"credentials": {
"host": "1.2.3.4",
"port": "4000",
"secret": "abc\u003c123" <-- wrong value
},
...
Expected behavior
stephan@WDFN34095835A:~$ cf env testapp
Getting env variables for app testapp in org uptime / space test as D047883...
OK
System-Provided:
{
"VCAP_SERVICES": {
"myservice": [
{
"binding_name": null,
"credentials": {
"host": "1.2.3.4",
"port": "4000",
"secret": "abc<123" <-- this would be the correct value
},
...
To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:
create space scoped service broker, create service and bind to a test app
stephan@WDFN34095835A:~/d047883$ cf create-service-broker mybroker broker broker https://myservice-broker.cfapps.sap.hana.ondemand.com --space-scoped
Creating service broker mybroker in org uptime / space test as D047883...
OK
stephan@WDFN34095835A:~/d047883$ cf cs myservice shared s1
Creating service instance s1 in org uptime / space test as D047883...
OK
stephan@WDFN34095835A:~/d047883$ cf bs testapp s1
Binding service s1 to app testapp in org uptime / space test as D047883...
OK
TIP: Use 'cf restage testapp' to ensure your env variable changes take effect
See error with cf env testapp as shown above
The problem seems to be a rending problem. The secret is set correctly in the application (tested with cf ssh) and when enabling verbose logging, you can see that the CF API returns the correct secret value:
Previous method `json.MarshalIndent` has HTML skipping enabled by default. This causes issues especially when outputting passwords with special chars.
resolves#1917
[#171951689](https://www.pivotaltracker.com/story/show/171951689)
CF_TRACE=1
to help debug the issue.Describe the bug and the command you saw an issue with
cf env
shows special chars like '<' and '>' in VCAP_SERVICES not correctly.What happened
Expected behavior
To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:
cf env testapp
as shown aboveThe problem seems to be a rending problem. The secret is set correctly in the application (tested with
cf ssh
) and when enabling verbose logging, you can see that the CF API returns the correct secret value:This issue seems only to happen for VCAP_SERVICES but not to user provided env vars as you can see on the service broker:
Provide more context
platform and shell details ( e.g. Mac OS X 10.11 iTerm)
Win10 and also in Bash/WSL on Win10
version of the CLI you are running
cf version 6.50.0+4f0c3a2ce.2020-03-03
Happens also for cf7 version 7.0.0-beta.30+6203bbe5d.2020-02-21
version of the CC API Release you are on
CC API v2: 2.146.0
CC API v3: 3.81.0
CF 12.34.0
The text was updated successfully, but these errors were encountered: