{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/727","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/727/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/727/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/727/events","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/727","id":238254935,"number":727,"title":"Using repo pattern with asterisk for application causes YML error","user":{"login":"jogjayr","id":310271,"avatar_url":"https://avatars1.githubusercontent.com/u/310271?v=3","gravatar_id":"","url":"https://api.github.com/users/jogjayr","html_url":"https://github.com/jogjayr","followers_url":"https://api.github.com/users/jogjayr/followers","following_url":"https://api.github.com/users/jogjayr/following{/other_user}","gists_url":"https://api.github.com/users/jogjayr/gists{/gist_id}","starred_url":"https://api.github.com/users/jogjayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jogjayr/subscriptions","organizations_url":"https://api.github.com/users/jogjayr/orgs","repos_url":"https://api.github.com/users/jogjayr/repos","events_url":"https://api.github.com/users/jogjayr/events{/privacy}","received_events_url":"https://api.github.com/users/jogjayr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-23T21:12:23Z","updated_at":"2017-06-23T21:13:54Z","closed_at":"2017-06-23T21:13:54Z","body":"Steps to \r\n\r\n1. Clone spring-cloud-config\r\n2. Modify spring-cloud-config-server's `application.yml` with the configuration given in the documentation:\r\n\r\n\r\n\r\n\r\n`spring:\r\n  cloud:\r\n    config:\r\n      server:\r\n        git:\r\n          uri: https://github.com/spring-cloud-samples/config-repo\r\n          repos:\r\n            development:\r\n              pattern:\r\n                - */development\r\n                - */staging\r\n              uri: https://github.com/development/config-repo\r\n            staging:\r\n              pattern:\r\n                - */qa\r\n                - */production\r\n              uri: https://github.com/staging/config-repo`\r\n\r\n(Note: Github has mangled my copy-paste, stripping out all newlines and whitespace. You can find the config here: http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html#_pattern_matching_and_multiple_repositories)\r\n\r\n3. Start the server\r\n\r\nExpected:\r\n\r\nServer starts without issues\r\n\r\nActual:\r\n\r\n* Server does not start\r\n\r\n\r\nStack trace\r\n\r\n`\r\n\torg.yaml.snakeyaml.scanner.ScannerException: while scanning an alias\r\n in 'reader', line 13, column 19:\r\n\t\t- */development\r\n\r\n\texpected alphabetic or numeric character, but found /\r\n in 'reader', line 13, column 20:\r\n\t- */development\r\n\r\n\tat org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:1439) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.scanner.ScannerImpl.fetchAlias(ScannerImpl.java:918) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:366) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:503) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceFirstEntry.produce(ParserImpl.java:495) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:157) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:147) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:198) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:153) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeValueNode(Composer.java:246) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingChildren(Composer.java:237) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:225) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:155) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:84) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.constructor.BaseConstructor.getData(BaseConstructor.java:104) ~[snakeyaml-1.17.jar:na]\r\n\tat org.yaml.snakeyaml.Yaml$1.next(Yaml.java:471) ~[snakeyaml-1.17.jar:na]\r\n\tat org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:160) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]\r\n\tat org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:138) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]\r\n\tat org.springframework.boot.env.YamlPropertySourceLoader$Processor.process(YamlPropertySourceLoader.java:101) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:58) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.env.PropertySourcesLoader.load(PropertySourcesLoader.java:127) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadIntoGroup(ConfigFileApplicationListener.java:473) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:460) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:380) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:215) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:184) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:171) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:157) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]\r\n\tat org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]\r\n\tat org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:73) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54) ~[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:336) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]\r\n\tat com.shn.maestro.ConfigServiceApplication.main(ConfigServiceApplication.java:11) [classes/:na]`\r\n\r\nNote: Github has also mangled my stack trace a bit, or I couldn't figure out how to format it correctly. My apologies."},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/comments/310774504","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/727#issuecomment-310774504","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/727","id":310774504,"user":{"login":"spencergibb","id":594085,"avatar_url":"https://avatars0.githubusercontent.com/u/594085?v=3","gravatar_id":"","url":"https://api.github.com/users/spencergibb","html_url":"https://github.com/spencergibb","followers_url":"https://api.github.com/users/spencergibb/followers","following_url":"https://api.github.com/users/spencergibb/following{/other_user}","gists_url":"https://api.github.com/users/spencergibb/gists{/gist_id}","starred_url":"https://api.github.com/users/spencergibb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencergibb/subscriptions","organizations_url":"https://api.github.com/users/spencergibb/orgs","repos_url":"https://api.github.com/users/spencergibb/repos","events_url":"https://api.github.com/users/spencergibb/events{/privacy}","received_events_url":"https://api.github.com/users/spencergibb/received_events","type":"User","site_admin":false},"created_at":"2017-06-23T21:13:54Z","updated_at":"2017-06-23T21:13:54Z","body":"You need to surround the item with single quotes. This is a yaml requirement."}}
{"actor":{"display_login":"spencergibb"}}