-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[core-http] URLBuilder struggles with parametrized URL and parametrized path #13159
Comments
So when we parse "{url}", URLBuilder set its |
Yeah, basically if you feed |
Given that there's a workaround I am closing this for now. |
update 2020-02-14 (Azure#13159) Co-authored-by: rez1 <[email protected]>
We're facing a problem with the Tables SDK that I think I have been able to isolate to core-http's URLBuilder.
It seems like having the base URL with a path cause troubles, for example:
In this example, I would expect it to end up being
http://localhost:3000/param1/param2
however it turns out to dismiss the {param} and ends up ashttp://localhost:3000/param1
However, if the base URL doesn't have any path elements it works fine
The scenario in the Tables SDK where this happens is when targeting the Azure Storage Emulator, in the regular scenario where we hit the service the base url is in this format
https://<ACCOUNT_NAME>.table.core.windows.net
so it works fine. However when targeting the Storage Emulator we have an url like thishttp://localhost:10002/<ACCOUNT_NAME>
so adding the Tables path in the first case is no issue, in the second scenario it runs in the issue above.This issue seems to be the cause of #12753 and blocking support for #13118 and #13100
Unfortunately, other places seem to rely on this behavior so changing it may break other libraries. I'm filing this issue to keep track of this problem and for starting up a discussion on what improvements can be made around this.
/cc: @xirzec
The text was updated successfully, but these errors were encountered: