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

Remove web::uri usage from public API #7834

Merged
merged 1 commit into from
Feb 23, 2019
Merged

Remove web::uri usage from public API #7834

merged 1 commit into from
Feb 23, 2019

Conversation

BrennanConroy
Copy link
Member

Also removed a couple redundant tests and enabled some of the disabled ones since they should be fixed.

Deleted some old unused code I found too.

And fixed a flaky build issue with copying a dll

@BrennanConroy BrennanConroy added the area-signalr Includes: SignalR clients and servers label Feb 22, 2019
@halter73
Copy link
Member

halter73 commented Feb 22, 2019

Did web::uri do any validation? If so, what happens now when I try to start the connection with a uri string would be an invalid web::uri? For example, does the http_client ctor start throwing?

@BrennanConroy
Copy link
Member Author

does the http_client ctor start throwing?

Yes, I believe this will throw now, as it converts the string into a uri and that does check for a valid uri.
I'll check for a test with an invalid uri, and add one if it's missing.

}
catch (...)
{
// We shouldn't check the exact exception as it would be specific to the http library being used
Copy link
Member

Choose a reason for hiding this comment

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

What is the exception with the default http library? Does it make it clear the URI is invalid?

Copy link
Member Author

Choose a reason for hiding this comment

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

"provided uri is invalid: :1 ä bad_uri&a=b"

@BrennanConroy
Copy link
Member Author

/azp run AspNetCore-ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr Includes: SignalR clients and servers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants