{"action":"created","issue":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/2525","labels_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2525/labels{/name}","comments_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2525/comments","events_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2525/events","html_url":"https://github.com/Particular/NServiceBus/issues/2525","id":46724141,"number":2525,"title":"Reply from finder results in invalid OriginatingSagaId header","user":{"login":"SimonCropp","id":122666,"avatar_url":"https://avatars.githubusercontent.com/u/122666?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonCropp","html_url":"https://github.com/SimonCropp","followers_url":"https://api.github.com/users/SimonCropp/followers","following_url":"https://api.github.com/users/SimonCropp/following{/other_user}","gists_url":"https://api.github.com/users/SimonCropp/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonCropp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonCropp/subscriptions","organizations_url":"https://api.github.com/users/SimonCropp/orgs","repos_url":"https://api.github.com/users/SimonCropp/repos","events_url":"https://api.github.com/users/SimonCropp/events{/privacy}","received_events_url":"https://api.github.com/users/SimonCropp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Bug","name":"Bug","color":"eb6420"},{"url":"https://api.github.com/repos/Particular/NServiceBus/labels/Needs:%20Scheduling","name":"Needs: Scheduling","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-24T10:25:11Z","updated_at":"2015-02-19T02:59:15Z","closed_at":"2015-02-19T02:59:15Z","body":"Run `When_reply_from_a_finder` and set a break point here https://github.com/Particular/NServiceBus/blob/a8f9b0036eb2f66e4cd3bb224ee2c3b1ab170e1d/src/NServiceBus.Core/Sagas/PopulateAutoCorrelationHeadersForRepliesBehavior.cs#L23\r\n\r\nYou will notice `saga.NotFound` is false so we enter and set invalid header ie `OriginatingSagaId` will be null.\r\n\r\nSo to fix we should fix the double negation and rename `saga.NotFound` to `saga.Found`, default it to false and set it to true when it is found"},"comment":{"url":"https://api.github.com/repos/Particular/NServiceBus/issues/comments/74991789","html_url":"https://github.com/Particular/NServiceBus/issues/2525#issuecomment-74991789","issue_url":"https://api.github.com/repos/Particular/NServiceBus/issues/2525","id":74991789,"user":{"login":"johnsimons","id":122651,"avatar_url":"https://avatars.githubusercontent.com/u/122651?v=3","gravatar_id":"","url":"https://api.github.com/users/johnsimons","html_url":"https://github.com/johnsimons","followers_url":"https://api.github.com/users/johnsimons/followers","following_url":"https://api.github.com/users/johnsimons/following{/other_user}","gists_url":"https://api.github.com/users/johnsimons/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsimons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsimons/subscriptions","organizations_url":"https://api.github.com/users/johnsimons/orgs","repos_url":"https://api.github.com/users/johnsimons/repos","events_url":"https://api.github.com/users/johnsimons/events{/privacy}","received_events_url":"https://api.github.com/users/johnsimons/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T02:59:15Z","updated_at":"2015-02-19T02:59:15Z","body":"Fixed in https://github.com/Particular/NServiceBus/commit/da25fed083a5384415e3f4dc1f26c18f7ebe8e71"}}