{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5573","repository_url":"https://api.github.com/repos/Microsoft/vsts-tasks","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5573/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5573/comments","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5573/events","html_url":"https://github.com/Microsoft/vsts-tasks/issues/5573","id":263437610,"number":5573,"title":"IIS Web Deploy - JSON replacement for non .json files","user":{"login":"thurfir","id":22148896,"avatar_url":"https://avatars2.githubusercontent.com/u/22148896?v=4","gravatar_id":"","url":"https://api.github.com/users/thurfir","html_url":"https://github.com/thurfir","followers_url":"https://api.github.com/users/thurfir/followers","following_url":"https://api.github.com/users/thurfir/following{/other_user}","gists_url":"https://api.github.com/users/thurfir/gists{/gist_id}","starred_url":"https://api.github.com/users/thurfir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thurfir/subscriptions","organizations_url":"https://api.github.com/users/thurfir/orgs","repos_url":"https://api.github.com/users/thurfir/repos","events_url":"https://api.github.com/users/thurfir/events{/privacy}","received_events_url":"https://api.github.com/users/thurfir/received_events","type":"User","site_admin":false},"labels":[{"id":391088230,"url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels/Area:%20Release","name":"Area: Release","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"Ajay-MS","id":16772764,"avatar_url":"https://avatars2.githubusercontent.com/u/16772764?v=4","gravatar_id":"","url":"https://api.github.com/users/Ajay-MS","html_url":"https://github.com/Ajay-MS","followers_url":"https://api.github.com/users/Ajay-MS/followers","following_url":"https://api.github.com/users/Ajay-MS/following{/other_user}","gists_url":"https://api.github.com/users/Ajay-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/Ajay-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ajay-MS/subscriptions","organizations_url":"https://api.github.com/users/Ajay-MS/orgs","repos_url":"https://api.github.com/users/Ajay-MS/repos","events_url":"https://api.github.com/users/Ajay-MS/events{/privacy}","received_events_url":"https://api.github.com/users/Ajay-MS/received_events","type":"User","site_admin":false},"assignees":[{"login":"Ajay-MS","id":16772764,"avatar_url":"https://avatars2.githubusercontent.com/u/16772764?v=4","gravatar_id":"","url":"https://api.github.com/users/Ajay-MS","html_url":"https://github.com/Ajay-MS","followers_url":"https://api.github.com/users/Ajay-MS/followers","following_url":"https://api.github.com/users/Ajay-MS/following{/other_user}","gists_url":"https://api.github.com/users/Ajay-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/Ajay-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ajay-MS/subscriptions","organizations_url":"https://api.github.com/users/Ajay-MS/orgs","repos_url":"https://api.github.com/users/Ajay-MS/repos","events_url":"https://api.github.com/users/Ajay-MS/events{/privacy}","received_events_url":"https://api.github.com/users/Ajay-MS/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-10-06T12:59:25Z","updated_at":"2017-10-09T11:04:11Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nWe would like to apply JSON replacements from the IIS Web Deploy task on some of our configuration files. However as these files may contain sensible informations we save them as .json.config files to prevent them from being exposed by IIS.\r\n\r\nAs the IIS Web Deploy task use the file type to detect if the file is a JSON or not, the replace is currently forbidden:\r\n\r\njsonvariablesubstitutionutility.ts (77)\r\n`            if(path.extname(file) !== '.json') {\r\n                throw new Error(tl.loc('JSONvariablesubstitutioncanonlybeappliedforJSONfiles'));\r\n}`\r\n\r\nIs there a workaround? Thanks."},"comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments/335126320","html_url":"https://github.com/Microsoft/vsts-tasks/issues/5573#issuecomment-335126320","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/5573","id":335126320,"user":{"login":"Ajay-MS","id":16772764,"avatar_url":"https://avatars2.githubusercontent.com/u/16772764?v=4","gravatar_id":"","url":"https://api.github.com/users/Ajay-MS","html_url":"https://github.com/Ajay-MS","followers_url":"https://api.github.com/users/Ajay-MS/followers","following_url":"https://api.github.com/users/Ajay-MS/following{/other_user}","gists_url":"https://api.github.com/users/Ajay-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/Ajay-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ajay-MS/subscriptions","organizations_url":"https://api.github.com/users/Ajay-MS/orgs","repos_url":"https://api.github.com/users/Ajay-MS/repos","events_url":"https://api.github.com/users/Ajay-MS/events{/privacy}","received_events_url":"https://api.github.com/users/Ajay-MS/received_events","type":"User","site_admin":false},"created_at":"2017-10-09T11:04:11Z","updated_at":"2017-10-09T11:04:11Z","author_association":"CONTRIBUTOR","body":"@thurfir \r\n\r\nAs you also know we are here strongly checking with extension '.json' only. \r\n\r\nOnly possible workarounds are \r\n1. To change the file to .json extension.\r\n                  _But this is a restriction from your end because you don't want to expose it by IIS_. \r\n2. To customize your local task to remove this check to get you unblocked on this issue. \r\n\r\nI will check if we could support '.json.config' files too so that you will not face the issue in future. \r\n\r\n"}}
{"actor":{"display_login":"Ajay-MS"}}