Closed jdebbink closed 4 years ago
Based on offline conversation with @mcy94w, this fix didn't work. @mcy94w will add repro steps in here
@shirhatti @mcy94w can you elaborate on what didn't work? We have been running this for over a month now and haven't had any issue.
@mcy94w Can you comment?
@mcy94w anything you can share? We have a fork of this and are in production with these changes. We'd rather not continue to maintain a fork.
When I have the following environment variables:
SINGLE 'quote'
DOUBLE "quote"
And then start service monitor I see the following entries in applicationHost.config
's environment variables section:
<add name="SINGLE" value="'quote'" />
<add name="DOUBLE" value=""quote"" />
@shirhatti @mcy94w
ping @mcy94w
If would be helpful if you could extend this PR to handle quotation mark in env name.
@mcy94w it'd be great to push this forward or understand what's holding it back. Are you able to help?
@jhkimnew to comment
@mcy94w left the team long time ago and I don't have any context on this issue.
I will investigate this instead of @mcy94w .
@shirhatti Would you let me know why this PR was not approved?
Sorry @jhkimnew! It's been long enough that I don't remember what the issue was
Oh, I just realize what @mcy94w wanted to say. He suggested to update to handle the environment name as well as the environment value.
For example, the below two environment variabes should be handled.
set Env'SINGLE'='quote' set Env"DOUBLE"="quote"
I have created a new PR to fix the issue. https://github.com/microsoft/IIS.ServiceMonitor/pull/64
So, I am closing this PR, which is not maintained anymore.
Fixes https://github.com/Microsoft/IIS.ServiceMonitor/issues/40
Entity Framework connection strings use single quotes so this was how the issue was discovered.