Open brunoAltinet opened 2 years ago
Sounds like a bug in yessql, it should check for null values returned by Map().
Can you file it in yessql if you agree with me?
YesSql thrwos exception when called directly, orchard "swallows" the exception when doing work through admin interface
But yea, there's also that part where null throws exception, that's another part of it:)
Is this still a YesSql issue @sebastienros?
Describe the bug
When using ReduceIndex, when Map part returns null, yessql throws nullref exception and Orchard queitly fails saving. It happened even before with faulty Map indexes (nothing would get saved if map index threw exception) so that's why i'm reporting it here, there should be some notification that the save failed.
To Reproduce
Add a ReduceIndex which returns null for Map. Try saving anything in admin, won't work
This should be a supported scenario in my opinion since returning null is standard practice in MapIndex.
Expected behavior
Orchard manages to save or notifies of failuer, or throws exception
Screenshots
None