Stripping away trailing dots
We bumped into this old issue of .NET framework stripping away all trailing dots from all URI path segments.
Some docs on the issue:
• Description of the issue: https://social.msdn.microsoft.com/Forums/vstudio/en-US/5206beca-071f-485d-a2bd-657d635239c9/bug-in-uri-class-with-periods?forum=netfxbcl
• Similar, with official workaround (I can’t access the original tho): https://stackoverflow.com/questions/856885/httpwebrequest-to-url-with-dot-at-the-end
• Attached picture of .NET 4.5 original release notes
Important information is that this problem was fixed for assemblies targeting .NET framework 4.5+.
That is why we wanted to get rid of a nasty hack in our applications which previously targeted .NET framework younger than 4.5. However, we found out that after removing the hack, the stripping was still occurring even though it should not theoretically be so as we already were on 4.5+.
I investigated this behavior a bit and here are my conclusion.
I think the problem might be in the Azure Service bootstrapper code.
Backed up by the following facts (you can check them yourself in the VS solution I have attached):
1, when we run the same code in Console app, the dot stripping does not happen
2, NUnit had a very similar bootstrapping problem: https://github.com/nunit/nunit/issues/237
3, When I spin up another AppDomain inside the Azure Role with enforcing the 4.5+ TargetFramework version. The stripping does not occur!
Could you please investigate this?