StackOverflowException while executing method UpdateFields()

Hi,
There is a problem with the method UpdateFields() in following configuration:

1.
The document has a bookmark with name = 'bookmarkValue'
2.
The text inside the bookmark is also 'bookmarkValue' (same as the bookmark name).
3.
The document contains a field, which references to this bookmark with following formula in Word:
IF bookmarkValue = "abc" "first3" "any"

When opening the file and use the method UpdateFields, the application crashes with StackOverflowException.
Document doc = new Document(@"C:\test.doc");
doc.UpdateFields();

I figured out, that the problem ist the content of the bookmark. If the bookmark-Name and the bookmark-Value is not the same, then it works.

Please find attached the sample doc file.

It would be ok, if you can fix this in some of the next versions of Aspose.Words.
I don't need a patch.

Best Regards
Thomas

Hi
Thomas,


Thanks for reporting this issue to us.

While using the latest version of Aspose.Words i.e. 11.1.0, I managed to reproduce this exception on my side. I have logged this issue in our bug tracking system as WORDSNET-6059. Your request has been linked to this issue and you will be notified as soon as it is resolved.

Sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as WORDSNET-6059) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.