Skip to content
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

Fixed invalid user agent format exception for Mac OS. #895

Merged
merged 9 commits into from
Oct 11, 2019

Conversation

j82w
Copy link
Contributor

@j82w j82w commented Oct 10, 2019

Pull Request Template

Description

The http headers only allow certain formats. The Mac OS creates a operating system string that causes the validation to fail. The / are converted | so it does not hit the same issue.

Examples:
cosmos-netstandard-sdk/3.3.0|3.3.0|60526|X64|Darwin 18.0.0 Darwin Kernel V|.NET Core 4.6.28008.01| UserApplicationName/1.0

cosmos-netstandard-sdk/3.3.0|3.3.0|28400|X64|Microsoft Windows 10.0.18362 |.NET Core 4.6.28008.01| UserApplicationName/1.0

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Closing issues

Put fixes #891

@j82w j82w self-assigned this Oct 10, 2019
ausfeldt
ausfeldt previously approved these changes Oct 10, 2019
@kirankumarkolli
Copy link
Member

There are reports based on separator which might need refreshing. Can you please run it through Deborah once?

@j82w j82w requested a review from deborahc October 10, 2019 20:03
@j82w j82w dismissed stale reviews from kirankumarkolli and ausfeldt via 4b16af5 October 11, 2019 15:12
ealsur
ealsur previously approved these changes Oct 11, 2019
@j82w j82w merged commit 9e234f8 into master Oct 11, 2019
@j82w j82w deleted the users/jawilley/user_agent_special_char_fix branch October 11, 2019 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to create CosmosClient instance when using version 3.3.0 - dotnetcore 2.2 console app
4 participants