Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 24, 2021

Changes ObjectCollection to use equality semantics for contain and removal of items instead of reference equality when there's a single item in the collection.

Backport of #59547 to release/6.0-rc2

Customer Impact

Customer reported break of app when checking parameters for HTTP headers that had a single value. This was a regression from 3.1.

Testing

Test added as part of this PR.

Risk

Low, there's internal usage of this and some behavioral changes (checking for Parameters.Contains(null) in ContentDispositionHeaderValue/MediaTypeHeaderValue/NameValueWithParametersHeaderValue/TransferCodingHeaderValue when they have no parameters returns true), but all were incorrect

@ghost ghost added the area-System.Net label Sep 24, 2021
@ghost
Copy link

ghost commented Sep 24, 2021

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #59547 to release/6.0-rc2

/cc @hoyosjs

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Net

Milestone: -

@hoyosjs hoyosjs requested review from a team and stephentoub September 24, 2021 02:42
@karelz karelz requested a review from geoffkizer September 24, 2021 12:56
@karelz karelz added this to the 6.0.0 milestone Sep 24, 2021
@karelz karelz added the Servicing-consider Issue for next servicing release review label Sep 24, 2021
@karelz
Copy link
Member

karelz commented Sep 24, 2021

@stephentoub @geoffkizer can you please do final code review on this PR? Thanks!

@stephentoub
Copy link
Member

can you please do final code review on this PR?

I've left comments on the original PR.

@hoyosjs hoyosjs added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 24, 2021
@hoyosjs
Copy link
Member

hoyosjs commented Sep 24, 2021

Approved by tactics on email.

@Anipik
Copy link
Contributor

Anipik commented Sep 24, 2021

@hoyosjs can you port the rest of the commits from the original PR ?

@hoyosjs
Copy link
Member

hoyosjs commented Sep 24, 2021

I am waiting for the original to get fully reviewed - I will port the commit, but this is not ready to be merged until then.

@Anipik
Copy link
Contributor

Anipik commented Sep 24, 2021

@hoyosjs is this now ready to merge ?

@hoyosjs
Copy link
Member

hoyosjs commented Sep 24, 2021

It is.

@hoyosjs hoyosjs merged commit 16397a0 into release/6.0-rc2 Sep 24, 2021
@hoyosjs hoyosjs deleted the backport/pr-59547-to-release/6.0-rc2 branch September 24, 2021 22:03
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants