{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/1699","repository_url":"https://api.github.com/repos/Azure/azure-functions-ux","labels_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/1699/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/1699/comments","events_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/1699/events","html_url":"https://github.com/Azure/azure-functions-ux/issues/1699","id":251010186,"number":1699,"title":"No way to manually enter Application Settings witn LF in","user":{"login":"SteveALee","id":618922,"avatar_url":"https://avatars2.githubusercontent.com/u/618922?v=4","gravatar_id":"","url":"https://api.github.com/users/SteveALee","html_url":"https://github.com/SteveALee","followers_url":"https://api.github.com/users/SteveALee/followers","following_url":"https://api.github.com/users/SteveALee/following{/other_user}","gists_url":"https://api.github.com/users/SteveALee/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveALee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveALee/subscriptions","organizations_url":"https://api.github.com/users/SteveALee/orgs","repos_url":"https://api.github.com/users/SteveALee/repos","events_url":"https://api.github.com/users/SteveALee/events{/privacy}","received_events_url":"https://api.github.com/users/SteveALee/received_events","type":"User","site_admin":false},"labels":[{"id":365939365,"url":"https://api.github.com/repos/Azure/azure-functions-ux/labels/Improvement","name":"Improvement","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"ahmelsayed","id":645740,"avatar_url":"https://avatars0.githubusercontent.com/u/645740?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmelsayed","html_url":"https://github.com/ahmelsayed","followers_url":"https://api.github.com/users/ahmelsayed/followers","following_url":"https://api.github.com/users/ahmelsayed/following{/other_user}","gists_url":"https://api.github.com/users/ahmelsayed/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmelsayed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmelsayed/subscriptions","organizations_url":"https://api.github.com/users/ahmelsayed/orgs","repos_url":"https://api.github.com/users/ahmelsayed/repos","events_url":"https://api.github.com/users/ahmelsayed/events{/privacy}","received_events_url":"https://api.github.com/users/ahmelsayed/received_events","type":"User","site_admin":false},"assignees":[{"login":"ahmelsayed","id":645740,"avatar_url":"https://avatars0.githubusercontent.com/u/645740?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmelsayed","html_url":"https://github.com/ahmelsayed","followers_url":"https://api.github.com/users/ahmelsayed/followers","following_url":"https://api.github.com/users/ahmelsayed/following{/other_user}","gists_url":"https://api.github.com/users/ahmelsayed/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmelsayed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmelsayed/subscriptions","organizations_url":"https://api.github.com/users/ahmelsayed/orgs","repos_url":"https://api.github.com/users/ahmelsayed/repos","events_url":"https://api.github.com/users/ahmelsayed/events{/privacy}","received_events_url":"https://api.github.com/users/ahmelsayed/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Azure/azure-functions-ux/milestones/16","html_url":"https://github.com/Azure/azure-functions-ux/milestone/16","labels_url":"https://api.github.com/repos/Azure/azure-functions-ux/milestones/16/labels","id":2492737,"number":16,"title":"Triaged","description":"Issues here need to be moved to a sprint or next.","creator":{"login":"lindydonna","id":4260261,"avatar_url":"https://avatars2.githubusercontent.com/u/4260261?v=4","gravatar_id":"","url":"https://api.github.com/users/lindydonna","html_url":"https://github.com/lindydonna","followers_url":"https://api.github.com/users/lindydonna/followers","following_url":"https://api.github.com/users/lindydonna/following{/other_user}","gists_url":"https://api.github.com/users/lindydonna/gists{/gist_id}","starred_url":"https://api.github.com/users/lindydonna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindydonna/subscriptions","organizations_url":"https://api.github.com/users/lindydonna/orgs","repos_url":"https://api.github.com/users/lindydonna/repos","events_url":"https://api.github.com/users/lindydonna/events{/privacy}","received_events_url":"https://api.github.com/users/lindydonna/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":44,"state":"open","created_at":"2017-05-01T23:44:33Z","updated_at":"2017-08-17T18:26:14Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-08-17T17:04:34Z","updated_at":"2017-08-18T20:14:35Z","closed_at":null,"body":"This is probably a bug in the underlying infrastructure but reporting it here as hit the issue in functions\r\n\r\nSome secrets like RS256 encoded JWT signing certificates are very fussy about format and need embedded newlines. however if we try to enter then in the UI with `\\n` they get converted to `\\\\n` which obviously breaks things.\r\n\r\nI also tried cut n paste of a newline from an editor but they get converted to spaces .\r\n\r\nFortunately there is a work around using the Azure Functions Core Tools to upload a correctly formatted value. Incidentally, when you view this value in the UX the \\n have been stripped.\r\n\r\nPersonally i'd be happy with a `.env` file support, but the separate store is safer I gues, though always requires some manual intervention to upload / download."},"comment":{"url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/comments/323450636","html_url":"https://github.com/Azure/azure-functions-ux/issues/1699#issuecomment-323450636","issue_url":"https://api.github.com/repos/Azure/azure-functions-ux/issues/1699","id":323450636,"user":{"login":"ahmelsayed","id":645740,"avatar_url":"https://avatars0.githubusercontent.com/u/645740?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmelsayed","html_url":"https://github.com/ahmelsayed","followers_url":"https://api.github.com/users/ahmelsayed/followers","following_url":"https://api.github.com/users/ahmelsayed/following{/other_user}","gists_url":"https://api.github.com/users/ahmelsayed/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmelsayed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmelsayed/subscriptions","organizations_url":"https://api.github.com/users/ahmelsayed/orgs","repos_url":"https://api.github.com/users/ahmelsayed/repos","events_url":"https://api.github.com/users/ahmelsayed/events{/privacy}","received_events_url":"https://api.github.com/users/ahmelsayed/received_events","type":"User","site_admin":false},"created_at":"2017-08-18T20:14:35Z","updated_at":"2017-08-18T20:14:35Z","body":"to allow `\\n` to stay preserved we would need to change the AppSettings text input to be multi-line input and have the `\\n` entered as an actual new line. The browser will always sanatize `\\n` to `\\\\n` which is a correct behavior for a single line text input (that is not treated as a string literal) \r\n\r\nHowever, I don't think switching to multi-line is appropriate for app settings as it would cause more issues since most app settings are not multi-line values. This is more of a corner case scenario that I'd rather leave for the cli to handle. \r\n\r\nI vote for closing this issue."}}
{"actor":{"display_login":"ahmelsayed"}}