René's URL Explorer Experiment


Title: [Order 05][P2] Harden duplicate detection and null binary materialization · Issue #62 · NEventStore/NEventStore.Persistence.SQL · GitHub

Open Graph Title: [Order 05][P2] Harden duplicate detection and null binary materialization · Issue #62 · NEventStore/NEventStore.Persistence.SQL

X Title: [Order 05][P2] Harden duplicate detection and null binary materialization · Issue #62 · NEventStore/NEventStore.Persistence.SQL

Description: Priority order Order: 05 of 09 Priority: P2 correctness Problem Provider error handling and binary materialization have fragile edge cases. Evidence: src/NEventStore.Persistence.Sql/SqlDialects/MySqlDialect.cs:43 MySQL duplicate detectio...

Open Graph Description: Priority order Order: 05 of 09 Priority: P2 correctness Problem Provider error handling and binary materialization have fragile edge cases. Evidence: src/NEventStore.Persistence.Sql/SqlDialects/MyS...

X Description: Priority order Order: 05 of 09 Priority: P2 correctness Problem Provider error handling and binary materialization have fragile edge cases. Evidence: src/NEventStore.Persistence.Sql/SqlDialects/MyS...

Opengraph URL: https://github.com/NEventStore/NEventStore.Persistence.SQL/issues/62

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Order 05][P2] Harden duplicate detection and null binary materialization","articleBody":"## Priority order\n\nOrder: 05 of 09\nPriority: P2 correctness\n\n## Problem\n\nProvider error handling and binary materialization have fragile edge cases.\n\nEvidence:\n\n- `src/NEventStore.Persistence.Sql/SqlDialects/MySqlDialect.cs:43`\n- MySQL duplicate detection reflects a `Number` property and immediately casts it.\n- `src/NEventStore.Persistence.Sql/CommitExtensions.cs:87`\n- `GetByteArray` returns `[default]` for `null`/`DBNull.Value`.\n\n## Impact\n\n- MySQL can mask non-provider exceptions with `NullReferenceException` or invalid casts during error handling.\n- Nullable `Headers` values can be deserialized from one zero byte instead of returning default, which can fail for legacy rows or manually inserted rows.\n\n## Mandatory test-first workflow\n\n- Add tests first to reproduce or verify each behavior.\n- Add a unit test proving `MySqlDialect.IsDuplicate(new Exception(...))` returns false and does not throw.\n- Add a materialization test for a commit row with `Headers = NULL`.\n- Do not change production code until the tests capture the expected behavior.\n\n## Proposed action\n\n- Guard MySQL `IsDuplicate` for missing or non-int `Number`.\n- Prefer provider-specific exception checks where available.\n- Return `[]` for `null` and `DBNull.Value` in `GetByteArray`.\n\n## Acceptance criteria\n\n- Duplicate detection does not throw for unrelated exception types.\n- Null headers materialize as default/empty headers behavior without deserialization failure.\n- Existing duplicate-commit behavior remains covered.\n\nSource: `docs/Project-Analysis-Issue-Drafts.md`.","author":{"url":"https://github.com/AGiorgetti","@type":"Person","name":"AGiorgetti"},"datePublished":"2026-06-11T09:21:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/62/NEventStore.Persistence.SQL/issues/62"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f9a4e927-1829-5b5c-6e66-6ecab2a565a0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBB1C:4D341:10BE908:166D943:6A4D8BDB
html-safe-nonce57489fe71f6ca7e90cc53bf1db6846ba68294cd3459d77401c2828dd402c908b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjFDOjREMzQxOjEwQkU5MDg6MTY2RDk0Mzo2QTREOEJEQiIsInZpc2l0b3JfaWQiOiI1Mjc5ODI5MTQ1ODY5NDU0Mjk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0a5312d06163615e0957e305435c89e42b5c450e892741ae272703afd11a26c8
hovercard-subject-tagissue:4639065490
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NEventStore/NEventStore.Persistence.SQL/62/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f98a93e64667a7ad30bb1fe6b4289cce535d6ce87e46cc1437fe74756a8c25ec/NEventStore/NEventStore.Persistence.SQL/issues/62
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f98a93e64667a7ad30bb1fe6b4289cce535d6ce87e46cc1437fe74756a8c25ec/NEventStore/NEventStore.Persistence.SQL/issues/62
og:image:altPriority order Order: 05 of 09 Priority: P2 correctness Problem Provider error handling and binary materialization have fragile edge cases. Evidence: src/NEventStore.Persistence.Sql/SqlDialects/MyS...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAGiorgetti
hostnamegithub.com
expected-hostnamegithub.com
None9f8758a3953dfe943439713a6fa4f90d542a3431f10e861ca03dd7f39009f320
turbo-cache-controlno-preview
go-importgithub.com/NEventStore/NEventStore.Persistence.SQL git https://github.com/NEventStore/NEventStore.Persistence.SQL.git
octolytics-dimension-user_id4486767
octolytics-dimension-user_loginNEventStore
octolytics-dimension-repository_id36130556
octolytics-dimension-repository_nwoNEventStore/NEventStore.Persistence.SQL
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36130556
octolytics-dimension-repository_network_root_nwoNEventStore/NEventStore.Persistence.SQL
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebffd5484f01713a661b03469b77678f72b6574ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NEventStore/NEventStore.Persistence.SQL/issues/62#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNEventStore%2FNEventStore.Persistence.SQL%2Fissues%2F62
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNEventStore%2FNEventStore.Persistence.SQL%2Fissues%2F62
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NEventStore%2FNEventStore.Persistence.SQL
Reloadhttps://github.com/NEventStore/NEventStore.Persistence.SQL/issues/62
Reloadhttps://github.com/NEventStore/NEventStore.Persistence.SQL/issues/62
Reloadhttps://github.com/NEventStore/NEventStore.Persistence.SQL/issues/62
Please reload this pagehttps://github.com/NEventStore/NEventStore.Persistence.SQL/issues/62
NEventStore https://github.com/NEventStore
NEventStore.Persistence.SQLhttps://github.com/NEventStore/NEventStore.Persistence.SQL
Notifications https://github.com/login?return_to=%2FNEventStore%2FNEventStore.Persistence.SQL
Fork 34 https://github.com/login?return_to=%2FNEventStore%2FNEventStore.Persistence.SQL
Star 10 https://github.com/login?return_to=%2FNEventStore%2FNEventStore.Persistence.SQL
Code https://github.com/NEventStore/NEventStore.Persistence.SQL
Issues 18 https://github.com/NEventStore/NEventStore.Persistence.SQL/issues
Pull requests 3 https://github.com/NEventStore/NEventStore.Persistence.SQL/pulls
Actions https://github.com/NEventStore/NEventStore.Persistence.SQL/actions
Projects https://github.com/NEventStore/NEventStore.Persistence.SQL/projects
Wiki https://github.com/NEventStore/NEventStore.Persistence.SQL/wiki
Security and quality 0 https://github.com/NEventStore/NEventStore.Persistence.SQL/security
Insights https://github.com/NEventStore/NEventStore.Persistence.SQL/pulse
Code https://github.com/NEventStore/NEventStore.Persistence.SQL
Issues https://github.com/NEventStore/NEventStore.Persistence.SQL/issues
Pull requests https://github.com/NEventStore/NEventStore.Persistence.SQL/pulls
Actions https://github.com/NEventStore/NEventStore.Persistence.SQL/actions
Projects https://github.com/NEventStore/NEventStore.Persistence.SQL/projects
Wiki https://github.com/NEventStore/NEventStore.Persistence.SQL/wiki
Security and quality https://github.com/NEventStore/NEventStore.Persistence.SQL/security
Insights https://github.com/NEventStore/NEventStore.Persistence.SQL/pulse
[Order 05][P2] Harden duplicate detection and null binary materializationhttps://github.com/NEventStore/NEventStore.Persistence.SQL/issues/62#top
https://github.com/AGiorgetti
AGiorgettihttps://github.com/AGiorgetti
on Jun 11, 2026https://github.com/NEventStore/NEventStore.Persistence.SQL/issues/62#issue-4639065490
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.