Skip to content

Binding collection is not working for options in .net 7.0.1 - it is working in version 7.0.0 and below #79904

Closed
@msmolka

Description

@msmolka

Description

I have following code for options:
https://github.com/msmolka/ZNetCS.AspNetCore.IPFiltering/blob/c4f6d097351e2d40126cd4be67d506e4fae6b1b3/src/ZNetCS.AspNetCore.IPFiltering/OptionBase.cs

Above code works properly in version 7.0.0 and below

However after applying 7.0.1 patch it stopped working.
We had to change code to following:

https://github.com/msmolka/ZNetCS.AspNetCore.IPFiltering/blob/4434801b441d3d8ba93c00649be148df52b43ed5/src/ZNetCS.AspNetCore.IPFiltering/OptionBase.cs

Reproduction Steps

Grab repo at point:
https://github.com/msmolka/ZNetCS.AspNetCore.IPFiltering/tree/f60a40de740681ed58cbd9906dcf46466f7513e6

2 test are failing for .net 7.0 (only after applying patch). They are passing before applying 7.0.1 patch

Expected behavior

There are no braking changes in patch version

Actual behavior

Breaking changes in patch version

Regression?

it is working on version 7.0.0. and below

Known Workarounds

https://github.com/msmolka/ZNetCS.AspNetCore.IPFiltering/blob/master/src/ZNetCS.AspNetCore.IPFiltering/OptionBase.cs

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions