U4-11614 - Sorting is not working in Umbraco 7.6.4

Created by laurent lequenne 05 Sep 2018, 14:23:12 Updated by Sebastiaan Janssen 05 Sep 2018, 17:36:35

What did you do?

We have a node with +/- 100 children where items can not be sorted anymore, I tested different scenarios, with different restore of databases and results are varying.

What did you expect to happen?

I expect nodes to be sorted and if not receiving an error message

What actually happened? It can be sorted, or not ! Nothing is logged ...

I made a test with a custom API, and it appears that if we use from the ContentService this function public bool Sort(IEnumerable items, int userId = 0, bool raiseEvents = true) with raiseEvents = false, it is working, but the nodeSort.asmx use the default raiseEvents value true which make the sort process to exit directly through those line of code.

                if (raiseEvents && uow.Events.DispatchCancelable(Saving, this, new SaveEventArgs<IContent>(asArray)))
                {
                    uow.Commit();
                    return false;
                }

Comments

Sebastiaan Janssen 05 Sep 2018, 17:36:25

Hi Laurent, it sounds a bit like the events that subscribe to sorting and saving content items are not written very efficiently. If you can reproduce on a clean install of 7.12 then please let us know reproduction steps, for now we're running Our Umbraco with a tree with 150 children, it sorts just fine so we can't reproduce the behavior you describe.

It might be a good idea to post some detail about your eventhandlers on the forum (https://our.umbraco.com) to get some help with optimizing those.


Priority: Normal

Type: Bug

State: Can't Reproduce

Assignee:

Difficulty: Difficult

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.4

Due in version:

Sprint:

Story Points:

Cycle: