{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/1771","repository_url":"https://api.github.com/repos/springfox/springfox","labels_url":"https://api.github.com/repos/springfox/springfox/issues/1771/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/1771/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/1771/events","html_url":"https://github.com/springfox/springfox/issues/1771","id":221810572,"number":1771,"title":"Swagger interfering the spring PropertySourcesPropertyResolver","user":{"login":"huherto","id":627910,"avatar_url":"https://avatars2.githubusercontent.com/u/627910?v=3","gravatar_id":"","url":"https://api.github.com/users/huherto","html_url":"https://github.com/huherto","followers_url":"https://api.github.com/users/huherto/followers","following_url":"https://api.github.com/users/huherto/following{/other_user}","gists_url":"https://api.github.com/users/huherto/gists{/gist_id}","starred_url":"https://api.github.com/users/huherto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huherto/subscriptions","organizations_url":"https://api.github.com/users/huherto/orgs","repos_url":"https://api.github.com/users/huherto/repos","events_url":"https://api.github.com/users/huherto/events{/privacy}","received_events_url":"https://api.github.com/users/huherto/received_events","type":"User","site_admin":false},"labels":[{"id":4478206,"url":"https://api.github.com/repos/springfox/springfox/labels/question","name":"question","color":"bfe5bf","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/springfox/springfox/milestones/39","html_url":"https://github.com/springfox/springfox/milestone/39","labels_url":"https://api.github.com/repos/springfox/springfox/milestones/39/labels","id":1974106,"number":39,"title":"2.7.0","description":"","creator":{"login":"dilipkrish","id":73257,"avatar_url":"https://avatars1.githubusercontent.com/u/73257?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipkrish","html_url":"https://github.com/dilipkrish","followers_url":"https://api.github.com/users/dilipkrish/followers","following_url":"https://api.github.com/users/dilipkrish/following{/other_user}","gists_url":"https://api.github.com/users/dilipkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipkrish/subscriptions","organizations_url":"https://api.github.com/users/dilipkrish/orgs","repos_url":"https://api.github.com/users/dilipkrish/repos","events_url":"https://api.github.com/users/dilipkrish/events{/privacy}","received_events_url":"https://api.github.com/users/dilipkrish/received_events","type":"User","site_admin":false},"open_issues":30,"closed_issues":183,"state":"open","created_at":"2016-08-31T03:16:25Z","updated_at":"2017-04-14T15:14:54Z","due_on":"2017-03-01T08:00:00Z","closed_at":null},"comments":3,"created_at":"2017-04-14T13:36:49Z","updated_at":"2017-04-14T16:02:53Z","closed_at":null,"body":"\r\nUsing  version 2.6.1\r\n\r\nWe installed swagger in an existing large application.  The spring PropertySourcesPropertyResolver stopped working for one bean.  We have  tested it commenting in/out the @EnableSwagger2 annotation.  \r\n\r\n```\r\n@Configuration\r\n//@EnableSwagger2\r\npublic class SwaggerConfig {                                    \r\n    @Bean\r\n    public Docket api() { \r\n        return new Docket(DocumentationType.SWAGGER_2)  \r\n          .select()                                  \r\n          .apis(RequestHandlerSelectors.any())              \r\n          .paths(PathSelectors.any())                          \r\n          .build();                                           \r\n    }\r\n}\r\n\r\n```\r\n```\r\n    @Autowired\r\n    public void setEmailCleansingNegativeExpressions(@Value(\"${email.negatives: }\")\r\n                                                     final String rawEmailNegatives) {\r\n            // rawEmailNegatives is now an emtpy string.\r\n    }\r\n```\r\nTurning debug logging for spring we see these when it logs. But not when it doesn't work.\r\n```\r\n2017-04-14 08:27:28 DEBUG [localhost-startStop-1] PropertySourcesPropertyResolver - Searching for key 'email.negatives' in [class path resource [data-cleanse.properties]]\r\n2017-04-14 08:27:28 DEBUG [localhost-startStop-1] PropertySourcesPropertyResolver - Searching for key 'email.negatives' in [class path resource [data-cleanse-replacements.properties]]\r\n2017-04-14 08:27:28 DEBUG [localhost-startStop-1] PropertySourcesPropertyResolver - Searching for key 'email.negatives' in [class path resource [data-cleanse-negatives.properties]]\r\n2017-04-14 08:27:28 DEBUG [localhost-startStop-1] PropertySourcesPropertyResolver - Found key 'email.negatives' in [class path resource [data-cleanse-negatives.properties]] with type [String] and value '.\r\n```\r\nIt is hard to replicate in a small app. We caught this because some existing functionality stopped working. We will do more research. I will leave this here in case anyone has any ideas.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/294180484","html_url":"https://github.com/springfox/springfox/issues/1771#issuecomment-294180484","issue_url":"https://api.github.com/repos/springfox/springfox/issues/1771","id":294180484,"user":{"login":"dilipkrish","id":73257,"avatar_url":"https://avatars1.githubusercontent.com/u/73257?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipkrish","html_url":"https://github.com/dilipkrish","followers_url":"https://api.github.com/users/dilipkrish/followers","following_url":"https://api.github.com/users/dilipkrish/following{/other_user}","gists_url":"https://api.github.com/users/dilipkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipkrish/subscriptions","organizations_url":"https://api.github.com/users/dilipkrish/orgs","repos_url":"https://api.github.com/users/dilipkrish/repos","events_url":"https://api.github.com/users/dilipkrish/events{/privacy}","received_events_url":"https://api.github.com/users/dilipkrish/received_events","type":"User","site_admin":false},"created_at":"2017-04-14T16:02:53Z","updated_at":"2017-04-14T16:02:53Z","body":"I believe it has to do with the order in which the properties are resolved. The bean that came with springfox, tried to resolve it and when it did not find it it left it unresolved."}}
{"actor":{"display_login":"dilipkrish"}}