Skip to content

[release/6.0-rc2] Fix behavior ObjectCollection for single item contains - #59557

Merged
hoyosjs merged 2 commits into
release/6.0-rc2from
backport/pr-59547-to-release/6.0-rc2
Sep 24, 2021
Merged

[release/6.0-rc2] Fix behavior ObjectCollection for single item contains#59557
hoyosjs merged 2 commits into
release/6.0-rc2from
backport/pr-59547-to-release/6.0-rc2

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Sep 24, 2021

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown

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 stephentoubSeptember 24, 2021 02:42
@karelzkarelz added this to the 6.0.0 milestone Sep 24, 2021
@karelzkarelz added the Servicing-consider Issue for next servicing release review label Sep 24, 2021
@karelz

Copy link
Copy Markdown
Member

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

@stephentoub

Copy link
Copy Markdown
Member

can you please do final code review on this PR?

I've left comments on the original PR.

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

hoyosjs commented Sep 24, 2021

Copy link
Copy Markdown
Member

Approved by tactics on email.

@Anipik

Copy link
Copy Markdown
Contributor

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

@hoyosjs

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

@hoyosjs is this now ready to merge ?

@hoyosjs

Copy link
Copy Markdown
Member

It is.

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

Labels

area-System.NetServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@karelz@stephentoub@hoyosjs@Anipik