Attribute HttpListenerRequest.UserAgent as nullable#93405
Attribute HttpListenerRequest.UserAgent as nullable#93405ManickaP merged 1 commit intodotnet:mainfrom
Conversation
Changed the datatype for HttpListenerRequest.UserAgent to be a nullable string to match internally and externally expected behaviour. Fix dotnet#93033
|
@dotnet-policy-service agree |
|
Tagging subscribers to this area: @dotnet/ncl Issue DetailsChanged the datatype for HttpListenerRequest.UserAgent to be a nullable string to match internally and externally expected behaviour. Fix #93033
|
ManickaP
left a comment
There was a problem hiding this comment.
LGTM, thank you for the contribution!
Dev inner loop failure is unrelated, this can be merged.
|
is this breaking change since it is touching |
|
This isn't breaking change as far as I know. cc @stephentoub |
Changing a property that was returning string ua = request.UserAgent;will now get a new warning where they didn't previously, and if they have warnings-as-errors enabled, that will break the build. So technically it is a breaking change. In the past we've typically just had a single catch-all breaking change notification about such nullability annotation changes. @jeffhandley, is there a process in place for aggregating all of these? |
|
With as few of these types of breaking changes as we've had recently, we should just start documenting each of them individually. I recall @gewarren mentioning the aggegate approach also introduced challenges, but I don't recall the specifics. I'm tagging this issue as needing a breaking change doc issue created. @ManickaP, it would be best for you to file the issue per the steps that the automated comment will provide. Here's a good reference example for the issue. |
|
Added When you commit this breaking change:
Tagging @dotnet/compat for awareness of the breaking change. |
|
We did aggregate (most of) the nullability changes for .NET 6: https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/nullable-ref-type-annotation-changes. I think it makes sense to aggregate them unless they fall under different areas. |
Changed the datatype for HttpListenerRequest.UserAgent to be a nullable string to match internally and externally expected behaviour.
Fix #93033