Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variables value escaped #17

Closed
3 tasks
oliveti opened this issue May 8, 2019 · 3 comments
Closed
3 tasks

Environment variables value escaped #17

oliveti opened this issue May 8, 2019 · 3 comments

Comments

@oliveti
Copy link

oliveti commented May 8, 2019

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

{
"name": "",
"build": "",
"version": 0,
"min_cli_version": "6.42.0",
"min_recommended_cli_version": "latest",
"api_version": "2.128.0",
"osbapi_version": "2.14",
}
cf version 6.44.0+5de0f0d02.2019-05-01

What version of the buildpack you are using?

1.0.12

If you were attempting to accomplish a task, what was it you were attempting to do?

Replace environment variables in nginx.conf and return it.
Here is the config 👍

     # configuration endpoint
    location /test {
      default_type application/json;

      set $override "{{env "OVERRIDE"}}";

      if ($override != '') {
          return 200 "{{env "OVERRIDE"}}";
      }

      try_files $uri /assets/test.json last;
    }

What did you expect to happen?

correct value to be returned : { "abcd": 12345 }{ 'ef': "ab" }

What was the actual behavior?

html escaped value : { "abcd": 12345 }{ 'ef': "ab" }

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Thank you

@cf-gitbot
Copy link

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

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

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

@tylerphelan
Copy link

@oliveti thanks for the issue, we'll look into this soon!

@dfreilich
Copy link
Contributor

@oliveti Thanks for the request! This was fixed here: 9d14718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants