-
Notifications
You must be signed in to change notification settings - Fork 572
Fix X509CertificateEndpointIdentity deserialization bug causing CryptographicException #5850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: mconnew <8648390+mconnew@users.noreply.github.com>
|
@copilot, the tests depend on X509CertificateEndpointIdentity.WriteContentsTo having a correct implementation. Modify the tests to not depend on the writing implementation being correct. |
Co-authored-by: mconnew <8648390+mconnew@users.noreply.github.com>
Modified the tests to manually construct the XML instead of using WriteContentsTo. Both tests now create the XML strings directly with the expected structure and base64-encoded certificate data. Commit: e6b6329 |
|
@copilot, an xunit code analyzer generated the following build error: Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013) |
…al for collection size check Co-authored-by: mconnew <8648390+mconnew@users.noreply.github.com>
Fixed by replacing |
|
@copilot, the test is failing on MacOS with the following error: |
Co-authored-by: mconnew <8648390+mconnew@users.noreply.github.com>
... Fixed by exporting and reimporting the certificates without private keys. The tests only need the certificate data for deserialization testing, not the private keys, so this avoids MacOS keychain issues. Commit: 28e9559 |
|
@copilot, building the tests is failing due to the following code analyzer build error: |
…lete constructor Co-authored-by: mconnew <8648390+mconnew@users.noreply.github.com>
Fixed by replacing |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
…kip on macOS Co-authored-by: mconnew <8648390+mconnew@users.noreply.github.com>
Added |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
brianrob
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.