dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
725 stars 1.56k forks source link

`Uri.EscapeDataString` no longer throws if parameter is longer than 32766 characters long #10549

Open alopezlago opened 2 weeks ago

alopezlago commented 2 weeks ago

Type of issue

Outdated article

Description

The documentation for Uri.EscapeDataString is out of date. At least in .Net 6 and later, the method doesn't throw a UriFormatException until value is over 65519 characters long, which is larger than the documented 32766 limit. This now matches the maximum length that Uri supports.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.uri.escapedatastring?view=net-8.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/Uri.xml

Document Version Independent Id

c0127701-9ef8-e99a-6d3a-ed5317a7b5ad

Article author

@dotnet-bot

dotnet-issue-labeler[bot] commented 2 weeks ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-issue-labeler[bot] commented 2 weeks ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-policy-service[bot] commented 2 weeks ago

Tagging subscribers to this area: @dotnet/ncl