Closed wfurt closed 1 year ago
Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.
Author: | wfurt |
---|---|
Assignees: | - |
Labels: | `area-System.Net`, `test-run-core` |
Milestone: | 8.0.0 |
https://github.com/dotnet/corefx/pull/18933 introduced an internal copy of the HttpUtility
code for encoding the Uri.
For whatever reason, it wasn't an exact copy - it included '
in the "safe" set of characters.
'
again.I'd be inclined to just update the test to use a new expected value. It's not clear to me how this set of "safe" characters came to be - it doesn't make any sense to me when compared to Uri.
Compare the HttpUtility
code
https://github.com/dotnet/runtime/blob/c0ebf2bdcdcef90f82c67d357750c34bb56c3f4c/src/libraries/System.Web.HttpUtility/src/System/Web/Util/HttpEncoderUtility.cs#L19-L29
to the WebClient
code in 7.0
https://github.com/dotnet/runtime/blob/8ac3832812f9bc37fba2a66ac8987ca66d381d85/src/libraries/System.Net.WebClient/src/System/Net/WebClient.cs#L1257-L1268
I'm fine with that as long as we feel it will not break anybody. I just noticed failing tests as they run agains (tanks to @ViktorHofer)
@MihaZupan do you plan on updating the test soon or should we disable it in the meantime to get a clean run?
@MihaZupan FYI the test needs to be reenabled in https://github.com/dotnet/runtime/blob/cf91dbe06ee4f57bcba01aa66570251e9104e0dc/src/libraries/System.Net.WebClient/tests/WebClientTest.cs#L700
https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-viktorhofer-outerlocb9d28b3bc0f4e38be/System.Net.WebClient.Tests/3/console.ad6886a8.log?helixlogtype=result
The UploadValues_Success test fails:
It seems like the expected
'
is escaped as%27
.cc: @MihaZupan