Skip to content

Fix XmlSchemaValidator wrong sender in validation errors - #138296

Open
aaronfranke wants to merge 1 commit into
dotnet:mainfrom
aaronfranke:fix-1.3-xml-schema-validator-sender
Open

aaronfranke wants to merge 1 commit into
dotnet:mainfrom
aaronfranke:fix-1.3-xml-schema-validator-sender

Conversation

@aaronfranke

Copy link
Copy Markdown
Contributor

This function call passes _nsResolver as the event sender object.

Every other validation event uses _validationEventSender.

Minimal reproduction project: xmlschemavalidator-sender.zip


AI usage disclaimer: I encountered these .NET runtime bugs when using an AI to work on an unrelated project. I had it fix the bugs as it went, and now I am submitting fixes to each after manually reviewing the changes, and fixing them as needed. Most of these lines of code are AI-generated, including the tests and the MRP. The PR description and commit message are entirely human-written, as is always the case with every PR I open.

This function call passes `_nsResolver` as the event sender `object`.
Every other validation event uses `_validationEventSender`.
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Nov 25, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-xml
See info in area-owners.md if you want to be subscribed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Xml community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant