{"action":"created","issue":{"url":"https://api.github.com/repos/lviggiano/owner/issues/134","labels_url":"https://api.github.com/repos/lviggiano/owner/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/lviggiano/owner/issues/134/comments","events_url":"https://api.github.com/repos/lviggiano/owner/issues/134/events","html_url":"https://github.com/lviggiano/owner/issues/134","id":97928377,"number":134,"title":"Can't convert 'file:${my.properties}' to a valid URI","user":{"login":"ant1g","id":1741537,"avatar_url":"https://avatars.githubusercontent.com/u/1741537?v=3","gravatar_id":"","url":"https://api.github.com/users/ant1g","html_url":"https://github.com/ant1g","followers_url":"https://api.github.com/users/ant1g/followers","following_url":"https://api.github.com/users/ant1g/following{/other_user}","gists_url":"https://api.github.com/users/ant1g/gists{/gist_id}","starred_url":"https://api.github.com/users/ant1g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant1g/subscriptions","organizations_url":"https://api.github.com/users/ant1g/orgs","repos_url":"https://api.github.com/users/ant1g/repos","events_url":"https://api.github.com/users/ant1g/events{/privacy}","received_events_url":"https://api.github.com/users/ant1g/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-29T12:52:19Z","updated_at":"2015-10-02T09:11:19Z","closed_at":null,"body":"Hi,\r\n\r\nIn the latest 1.0.9, I am seeing an exception being thrown when creating the config from the ConfigFactory.\r\nHere is the exception:\r\n```\r\nCaused by: java.lang.UnsupportedOperationException: Can't convert 'file:${my.properties}' to a valid URI\r\n\tat org.aeonbits.owner.Util.unsupported(Util.java:128)\r\n\tat org.aeonbits.owner.PropertiesManager.toURIs(PropertiesManager.java:134)\r\n\tat org.aeonbits.owner.PropertiesManager.<init>(PropertiesManager.java:105)\r\n\tat org.aeonbits.owner.DefaultFactory.create(DefaultFactory.java:43)\r\n\tat org.aeonbits.owner.ConfigFactory.create(ConfigFactory.java:66)\r\n\t... 66 more\r\nCaused by: java.net.URISyntaxException: Expected scheme-specific part at index 5: file:\r\n\tat java.net.URI$Parser.fail(URI.java:2829)\r\n\tat java.net.URI$Parser.failExpecting(URI.java:2835)\r\n\tat java.net.URI$Parser.parse(URI.java:3038)\r\n\tat java.net.URI.<init>(URI.java:595)\r\n\tat org.aeonbits.owner.ConfigURIFactory.newURI(ConfigURIFactory.java:41)\r\n\tat org.aeonbits.owner.PropertiesManager.toURIs(PropertiesManager.java:130)\r\n```\r\n\r\nHere is my @Sources annotation:\r\n```java\r\n@Sources({\"file:${my.properties}\", \"classpath:conf/${my.env}.my.properties\", \"classpath:conf/my.properties\"})\r\npublic interface MyProperties extends Config {\r\n...\r\n}\r\n```\r\n\r\nThis used to work fine in previous versions (1.0.5.1), as follows:\r\n- If a system property \"my.properties\" was defined, it would use it first\r\n- If not, it would try to look for another system property called \"my.env\", and then load the matching file from the classpath\r\n- finally, if the above was not found, it would try to look for a file at \"conf/my.properties\" on the classpath\r\n\r\nIt seems that the system properties used in the @Sources cannot be optional... And that's truly annoying!\r\n\r\nPlease let me know!\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/lviggiano/owner/issues/comments/144966557","html_url":"https://github.com/lviggiano/owner/issues/134#issuecomment-144966557","issue_url":"https://api.github.com/repos/lviggiano/owner/issues/134","id":144966557,"user":{"login":"averst69","id":154759,"avatar_url":"https://avatars.githubusercontent.com/u/154759?v=3","gravatar_id":"","url":"https://api.github.com/users/averst69","html_url":"https://github.com/averst69","followers_url":"https://api.github.com/users/averst69/followers","following_url":"https://api.github.com/users/averst69/following{/other_user}","gists_url":"https://api.github.com/users/averst69/gists{/gist_id}","starred_url":"https://api.github.com/users/averst69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/averst69/subscriptions","organizations_url":"https://api.github.com/users/averst69/orgs","repos_url":"https://api.github.com/users/averst69/repos","events_url":"https://api.github.com/users/averst69/events{/privacy}","received_events_url":"https://api.github.com/users/averst69/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T09:11:19Z","updated_at":"2015-10-02T09:11:19Z","body":"I reverted to version 1.0.6 and it worked again"}}