Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Use http scheme when using preview emulator#14543

Open
cliedeman wants to merge 1 commit intodotnet:mainfrom
cliedeman:fix/cosmos-preview-emulator-check
Open

fix: Use http scheme when using preview emulator#14543
cliedeman wants to merge 1 commit intodotnet:mainfrom
cliedeman:fix/cosmos-preview-emulator-check

Conversation

@cliedeman
Copy link

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes#13893

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add<remarks /> and<code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

CopilotAI review requested due to automatic review settingsFebruary 18, 2026 11:55
@github-actions
Copy link
Contributor

🚀Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh| bash -s -- 14543

Or

  • Run remotely in PowerShell:
iex"& {$(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14543"

@dotnet-policy-servicedotnet-policy-servicebot added the community-contributionIndicates that the PR has been added by a community member labelFeb 18, 2026
@cliedeman
Copy link
Author

@dotnet-policy-service agree

Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull request overview

This pull request fixes issue#13893 where custom CosmosDB preview emulator image tags (e.g.,vnext-EN20251212) were not being recognized as preview emulator instances, causing SSL connection errors. The root cause was that theIsPreviewEmulator property only checked for the exact tagvnext-preview, not other vnext variants. When unrecognized, the system would attempt to use HTTPS connections, but the preview emulator uses HTTP, resulting in SSL/TLS failures.

Changes:

  • ExtendedIsPreviewEmulator logic to recognize all vnext-prefixed tags by adding aStartsWith check
  • AddedTagVNext constant to centralize the "vnext" tag prefix
  • Added comprehensive test coverage for multiple tag variants (default, custom dated tag, and explicit vnext-preview)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

FileDescription
src/Aspire.Hosting.Azure.CosmosDB/CosmosDBEmulatorContainerImageTags.csAddedTagVNext constant for the "vnext" tag prefix
src/Aspire.Hosting.Azure.CosmosDB/AzureCosmosDBResource.csUpdatedIsPreviewEmulator to check for both exact "vnext-preview" match and "vnext" prefix usingStartsWith
tests/Aspire.Hosting.Azure.Tests/AzureCosmosDBConnectionPropertiesTests.csAdded parameterized test covering null (default), custom dated tag, and explicit preview tag scenarios; removed trailing whitespace

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

Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

community-contributionIndicates that the PR has been added by a community member

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

CosmosDB PreviewEmulator setting ImageTag is not working for preview emulator

1 participant

@cliedeman

Comments


[8]ページ先頭

©2009-2026 Movatter.jp