V15 - Race condition breaks navigation between documents #17758
Labels
area/frontend
category/front-end
state/sprint-candidate
We're trying to get this in a sprint at HQ in the next few weeks
type/bug
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
15.0.0
Bug summary
There is a race condition in the backoffice, that causes navigation between documents to break
The error happens only when different data types of different properties are loaded with a sizable delay
Specifics
No response
Steps to reproduce
Create a new document type with at least 2 fields
The 2 fields should use different data types with different property editor UI's - for examle a Tiptap RTE editor (Umb.PropertyEditorUi.Tiptap) and a Content Picker (Umb.PropertyEditorUi.DocumentPicker)
Create 2 documents with this document type, and name them something different so you can tell them apart
Copy the ID of one of the 2 data types used in one of the properties, and insert the following middleware in Program.cs. Make sure to replace the
<xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx>
part with the ID of the data typeExplanation for step 3:
We of course do not have this delay in our code, but we do experience from time to time in our test environment that one request may be slightly delayed compared to another, which may cause this race condition to occur when navigating between documents
The inserted middleware with an explicit delay for only 1 of the 2 data types used, will help reliable re-create the scenario where the race condition occurs
If you are running this scenario on your localhost with a local DB with an extremely small latency, you will almost never be able to replicate this scenario, unless you add the delay artificially - but in our test environment it happens from time to time naturally when the server has a bit of traffic
Expected result / actual result
Expected result: Navigating between documents should work every time, regardless of any delays in individual requests
Actual result: Navigation gets stuck if there is a sizable delay between 2 data types being loaded from the server
This item has been added to our backlog AB#47239
The text was updated successfully, but these errors were encountered: