-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Wrong name and id in input after upgrade to ASP Core 1.1.0 #5655
Comments
@rneeft , In order to be sure open the _ViewImports.cshtml and remove third parties tag helpers dlls. |
@dougbu any idea on this? Could it be the 3rd party lib? |
I also cannot reproduce this behaviour with 1.1.0 bits. Suspect Microsoft.AspNetCore.Mvc.Versioning is causing oddities; it requires MVC 1.0.0. However, I'll file a separate Task in this repo about ensuring our functional tests cover |
@rneeft closing because @frankabbruzzese and I cannot reproduce the issue. Please reopen if you have a repro that does not involve 3rd party dependencies (which might be doing weird stuff). |
I've build an example solution that can reproduce this behavior. When the package "Microsoft.AspNetCore.Mvc": "1.1.0" is present in project.json the output code will look like this:
When you change the package version back in the project.json: "Microsoft.AspNetCore.Mvc": "1.0.1" the output code will look like this:
As you can see there are no external libraries used, it is the default VS2015 project template updated to .Net Core 1.1. So this replicates the issue @rneeft describes. |
@dougbu It seems I'm unable to reopen this issue :( |
@joosthaneveer , @rneeft , I advice starting an 1.1 project from scratch using VS scaffolder, and adding your specific files on it (ViewModels, Controllers), because I cant easily see the differences between you project and a "standard 1.1 project" that works properly. Maybe some reference mismatch is the culprit but I was not anle to locate it. I changed als some package version to match the one of a standard 1.1 project but with no luck...the issue persists. |
Reopening while I double-check my repro. |
🆗 I've successfully reproduced the bug and debugged enough to see where everything heads South. Next steps are to see if my current repro (a subset of @joosthaneveer's application) works with MVC 1.0.2 and then 1.2.0. |
Workaround: Use |
Clearing label and assignment for triage. FYI I have the outline of a fix but no test additions. This looks like a candidate for 1.1.1 given workaround could be far from the broken element(s). |
@dougbu , |
@frankabbruzzese there's no |
@dougbu , |
This patch bug is approved. Please use the normal code review process w/ a PR and make sure the fix is in the correct branch, then close the bug and mark it as done. |
- #5655 - also make `ExpressionTextCache` more robust for defence-in-depth nits: - two `null` expression nodes are equal - declare data properties as `TheoryData<T>`
- #5655 - also make `ExpressionTextCache` more robust for defence-in-depth nits: - two `null` expression nodes are equal - declare data properties as `TheoryData<T>`
Hi all,
I’ve upgraded our ASP Core 1.0.1 solution to ASP Core 1.1. We hit an issue with one of our pages after the upgrade. We have the following code in razor:
This code result in 1.0.1 into the following HTML:
This worked great until we upgraded to ASP Core 1.1.0. The razor code above now results into the following HTML:
Please pay attention to the ‘name’ and ‘id’ properties of the input fields. Not having the ‘_{id}__’ layout results in zero items in the list upon submit.
We have been able to narrow the issues down to the following package: Microsoft.AspNetCore.Mvc. When having version 1.0.1 the page is working, but having version 1.1.0 it kills our submit in the page.
Is this a bug?
Thanks!
Rick
For completeness this is the complete project.json file we have:
The text was updated successfully, but these errors were encountered: