Closed creativesuspects closed 1 year ago
Seeing this with 4.4.5 on Umbraco 12.1.2 as well. Downgrading to 4.4.4 fixes it, so it is definitely a regression in 4.4.5.
Seems that this commit has caused the issue: https://github.com/leekelleher/umbraco-contentment/commit/c1080001c796dc4a513cc559c18ffe8152e1ed5b
Specifically, it seems that the mere fact that ToDataListItem
is now an extension method is the issue. I copied the code from the extension method back inline and it works. Change it to the extension method and it breaks.
Seems that this commit has caused the issue: c108000
Specifically, it seems that the mere fact that
ToDataListItem
is now an extension method is the issue. I copied the code from the extension method back inline and it works. Change it to the extension method and it breaks.
@arknu Thank you for identifying this, I hadn't had much chance to reproduce the issue, (and strange that I hadn't encountered the bug, given my eek "strict testing" 🙀). I can now reproduce the bug! For me, moving the code back inline doesn't seem to make a different. But when I append a .ToList()
, that resolves the issue... e.g. switching from deferred execution to immediate/eager. Checking the commit you linked to, the change did removed the .ToList()
, so that'll be the real issue, not the extension method itself.
I'll look to get a patch out as soon as possible. 🙏 //cc @creativesuspects
@leekelleher Of course, that makes much more sense! Having the execution deferred would of course cause issues with objects being disposed. Don't know why I didn't notice that yesterday...
@leekelleher @arknu Glad to hear you guys found the culprit. Looking forward to the new patch release!
Contentment v4.4.6 has been released. https://github.com/leekelleher/umbraco-contentment/releases/tag/4.4.6
Which Contentment version are you using?
4.4.5
Which Umbraco version are you using? For example: 8.14.1 - don't just write v8
10.6.1
Bug summary
After upgrading Contentment from 4.4.4 to 4.4.5 I'm unable to open content nodes in the back-office that contain a Data List with Umbraco Content by XPath as the source:
I'm seeing two errors in the log for each request:
1) An unhandled exception has occurred while executing the request.
2) Unhandled controller exception occurred for request '"/umbraco/backoffice/umbracoapi/content/GetById?id=2716"'
Steps to reproduce
Upgrade Contentment to version 4.4.5 and open a content node that contains a property based on the Contentment Data List data type with Umbraco Content by XPath as the source:
I'm using the following XPath expression:
$site/appConfig/departmentFolder/*[@isDoc]
The error is gone after downgrading back to Contentment 4.4.4.
Expected result / actual result
No response
Do you have Umbraco ModelsBuilder enabled?
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge