We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Syncfusion DocIO new WordDocument causes infinite loop if mail merge is incorrect format

Syncfusion version: 20.4.0.53

If a merge field is incorrectly formatted, new WordDocument(Stream stream, FormatType FormatType.Docx) method creates an infinite loop, that causes the server it runs on to slow down even.

Example:

Code

using WordDocument document = new WordDocument(documentStream, FormatType.Docx);

Wrong merge format that can cause infinite loop.
{MERGEFIELD "System.Date" \* MERGEFORMAT\@ "d MMMM yyyy\"}

Correct merge format, no infinite loop.
{MERGEFIELD "System.Date" \@ d MMMM yyyy}


Is there a way to make the method NOT cause this infinite loop?


Attachment: Quotation_49a491aa.zip

3 Replies

AN Anto Nihil Sahaya Raj Syncfusion Team May 4, 2023 05:10 PM UTC

Hi Ian David,

We have reproduced the reported problem “Hanging issue occurs while opening the Word document” on our end. We will validate this issue and update you with more details on 08th May 2023.

Regards,
Anto Nihil S



AN Anto Nihil Sahaya Raj Syncfusion Team May 8, 2023 04:12 PM UTC

Ian David, we have confirmed that the reported issue Hanging issue occurs while opening the Word document” is a defect and we have logged a defect report. We will include the fix for this defect in our weekly NuGet release which is estimated to be available on 23rd May 2023.

The status of this bug can be tracked through the below link:
https://www.syncfusion.com/feedback/43503/hanging-issue-occurs-while-opening-the-word-document

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”



AN Anto Nihil Sahaya Raj Syncfusion Team May 23, 2023 08:29 AM UTC

Ian David, as promised earlier, we have included the fix for the reported issue with “Hanging issue occurs while opening the Word document” in our latest weekly NuGet release (v21.2.6).

Please use the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.DocIO.Net.Core/21.2.6

The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/43503/hanging-issue-occurs-while-opening-the-word-document

Note: We will include this fix in our 2023 Volume 2 Main Release which will be available at the end of June 2023.


Loader.
Up arrow icon