-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MissingMethodException with OData v8.1.0 #980
Comments
Unfortunately, OData strikes again. 😞 I've lost track of the number of times they have broken things downstream. It's been multiple times since PR 835 introduces a breaking change to address OData/AspNetCoreOData#834. Specifically, the The immediate workaround is to use OData |
Thanks Chris. Indeed I could have noticed that given I've tracked it to the bump of OData library, a minor ... I'm going to report this issue to OData project, maybe they are willing to release a Patch to restore the original method and flag 8.1.0 as deprecated on Nuget. p.s. "OData strikes again" is a nice name metal band, or subtitle of "Scary Movie 6" :-D |
@AndreaCuneo I just wanted to check in. Is this actually blocking you? I'm pretty sure I know how to fix it, but it's unclear if the OData team is going to change anything. I followed the issue you posted and added some additional thoughts. I'm inclined to hold until we have a sense of whether the OData team will make a change or not. If they don't, then I think I need to bump the minor version so I can make sure I can service the two variations (e.g. |
@commonsensesoftware thanks for the concern. Atm there is no rush as we don't need any OData v8.1 fixes nor improvements in the Applications. I see a potential risk on OData/AspNetCoreOData#824 and OData/AspNetCoreOData#859 but no issues yet. In any case looks like they are going to keep the change in and at most add [Obsolete] for retrocompatibility so your update will be needed in any case. |
Just leaving an update here, there is currently a PR open in AspNetCoreOData which adds this back in to avoid a breaking change. Stumbled into this issue myself and it's annoying semver was not properly followed. I sympathize. |
The changes looked good and it also seems a few other bugs were fixed. The PR is approved so I don't really know what the hold up is. Best as I can tell, the OData team doesn't use feature branches to control their releases (which makes sense for a larger team). They also don't seem to ever put out hot patches. The changes always go to This change/fix should been published already IMHO. The current state of affairs is a landmine waiting to be stepped on. The longer the bad versions stay out there, the more people are likely to lose a limb. 😝 At least it's being fixed and is approved. |
This was ultimately external and I believe has been fixed. Thanks for reporting it and helping drive a comprehensive E2E solution. |
Is there an existing issue for this?
Describe the bug
After update Microsoft.AspNetCore.OData from v8.0.12 to v8.1.0, the following exception is thrown
'Microsoft.OData.ModelBuilder.Config.DefaultQuerySettings Microsoft.AspNetCore.OData.ODataOptions.get_QuerySettings()'
during Swagger generation, tied to ApiDescription.
This happens on Asp.Versioning.OData.ApiExplorer v6.4.1.
Expected Behavior
Work as per v8.0.12
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0
Anything else?
ASP.NET Core v6
The text was updated successfully, but these errors were encountered: