{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/uaa/issues/555","repository_url":"https://api.github.com/repos/cloudfoundry/uaa","labels_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/555/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/555/comments","events_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/555/events","html_url":"https://github.com/cloudfoundry/uaa/issues/555","id":212829099,"number":555,"title":"UAA SMTP configuration","user":{"login":"jm4rc05","id":1405838,"avatar_url":"https://avatars2.githubusercontent.com/u/1405838?v=3","gravatar_id":"","url":"https://api.github.com/users/jm4rc05","html_url":"https://github.com/jm4rc05","followers_url":"https://api.github.com/users/jm4rc05/followers","following_url":"https://api.github.com/users/jm4rc05/following{/other_user}","gists_url":"https://api.github.com/users/jm4rc05/gists{/gist_id}","starred_url":"https://api.github.com/users/jm4rc05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jm4rc05/subscriptions","organizations_url":"https://api.github.com/users/jm4rc05/orgs","repos_url":"https://api.github.com/users/jm4rc05/repos","events_url":"https://api.github.com/users/jm4rc05/events{/privacy}","received_events_url":"https://api.github.com/users/jm4rc05/received_events","type":"User","site_admin":false},"labels":[{"id":240264515,"url":"https://api.github.com/repos/cloudfoundry/uaa/labels/unscheduled","name":"unscheduled","color":"D9D9D9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-08T19:16:50Z","updated_at":"2017-03-09T15:54:35Z","closed_at":"2017-03-09T15:54:35Z","body":"I'm trying to configure SMTP to my UAA instance and copied some configuration fragment from `uaa/uaa/src/main/resources/uaa.yml` (last 5 lines from the development branch - the same branch I'm using)  to my instance configuration:\r\n\r\n```yaml\r\ndatabase:\r\n    driverClassName: org.mariadb.jdbc.Driver\r\n    url: jdbc:mysql://<my db host>\r\n    username: <my db user>\r\n    password: <my db password>\r\n\r\nsmtp:\r\n    host: <my smtp host>\r\n    port: 587\r\n    user: <my smtp user>\r\n    password: <my smtp password>\r\n```\r\n\r\nI'm setting CLOUD_FOUNDRY_CONFIG_PATH to the folder where my `uaa.yml` reside and put the service to run and got this at the log:\r\n\r\n```text\r\n[2017-03-08 15:57:18.031] cloudfoundry-identity-server - ???? [localhost-startStop-1] ....  WARN --- XmlWebApplicationContext: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'uaaConfig' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Could not resolve placeholder 'environmentYamlKey' in string value \"${environmentYamlKey}\"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'environmentYamlKey' in string value \"${environmentYamlKey}\"\r\n[2017-03-08 15:57:18.036] cloudfoundry-identity-server - ???? [localhost-startStop-1] .... ERROR --- DispatcherServlet: Context initialization failed\r\norg.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'uaaConfig' defined in ServletContext resource [/WEB-INF/spring-servlet.xml]: Could not resolve placeholder 'environmentYamlKey' in string value \"${environmentYamlKey}\"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'environmentYamlKey' in string value \"${environmentYamlKey}\"\r\n```\r\n\r\nObs.: **Commenting out the SMTP definitions I get the service running**, but without my smtp service!"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/uaa/issues/comments/285391505","html_url":"https://github.com/cloudfoundry/uaa/issues/555#issuecomment-285391505","issue_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/555","id":285391505,"user":{"login":"jm4rc05","id":1405838,"avatar_url":"https://avatars2.githubusercontent.com/u/1405838?v=3","gravatar_id":"","url":"https://api.github.com/users/jm4rc05","html_url":"https://github.com/jm4rc05","followers_url":"https://api.github.com/users/jm4rc05/followers","following_url":"https://api.github.com/users/jm4rc05/following{/other_user}","gists_url":"https://api.github.com/users/jm4rc05/gists{/gist_id}","starred_url":"https://api.github.com/users/jm4rc05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jm4rc05/subscriptions","organizations_url":"https://api.github.com/users/jm4rc05/orgs","repos_url":"https://api.github.com/users/jm4rc05/repos","events_url":"https://api.github.com/users/jm4rc05/events{/privacy}","received_events_url":"https://api.github.com/users/jm4rc05/received_events","type":"User","site_admin":false},"created_at":"2017-03-09T15:54:35Z","updated_at":"2017-03-09T15:54:35Z","body":"I found the problem. `<my smtp password>` had a symbol and something (the spring framework or something more deeper) crashed trying to parse the thing!\r\n\r\nSorry for the false alarm!"}}
{"actor":{"display_login":"jm4rc05"}}