Repository navigation
Space out stored headers so SQL Server search finds ids next to emails and URLs - #6009
Open
warwickschroeder wants to merge 2 commits into
Open
warwickschroeder wants to merge 2 commits into
warwickschroeder wants to merge 2 commits into
Conversation
…ndling in message headers
rbev
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
Since phrase search, SQL Server could not find a message id followed by an email- or URL-valued header, so ServicePulse could not open that message. Headers are now stored with whitespace between entries on the error and audit persisters. Bodies are unchanged, so search inside a compact JSON body still misses emails and URLs, and rows stored before this keep the old layout.
"key": "value".How to reproduce
On SQL Server, ingest a message whose id is followed by a header such as
NServiceBus.ReplyToAddress: Sales@web01.corp.example.com. Searching the id finds nothing, and opening it by id says it cannot be found.Tests
ServiceControl.Persistence.Tests/EFCore/MessagesViewDataStoreTests: an id followed straight away by an email-like reply-to address is found, on SQL Server and PostgreSQL.ServiceControl.Audit.Persistence.Tests/EFCore/EFQueryTests: the same for audit.