Format_BadBase64Char exception when loading documents


#1

Hi,

I’m using Aspose.Words for Java 19.7 and get an Format_BadBase64Char exception when loading documents.
The exception also occurs in version 19.6, but not with version 19.5.

Steps to reproduce:
Using the following sample documents:
aspose.zip (24.8 KB)

Using the following code to load the document:

Document document = new Document(“C:\aspose\document_causes_exception.docx”);

With version 19.5 the document “document_causes_exception.docx” is loaded correctly.
Using version 19.6 or 19.7 the following exception is thrown:

java.lang.RuntimeException: Format_BadBase64Char
at com.aspose.words.internal.zz1O.zzY(Unknown Source)
at com.aspose.words.internal.zz1O.zzZ(Unknown Source)
at com.aspose.words.internal.zzX.zzS(Unknown Source)
at com.aspose.words.zzYZ5.zzGH(Unknown Source)
at com.aspose.words.zzYZ5.zzYSq(Unknown Source)
at com.aspose.words.zz8Y.visitStructuredDocumentTagStart(Unknown Source)
at com.aspose.words.StructuredDocumentTag.zzZ(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.StructuredDocumentTag.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Paragraph.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Body.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Section.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.CompositeNode.acceptCore(Unknown Source)
at com.aspose.words.Document.accept(Unknown Source)
at com.aspose.words.zz8Y.zzZ(Unknown Source)
at com.aspose.words.Document.zzY(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.aspose.words.Document.(Unknown Source)

Expected Behaviour:
The document is loaded as in older versions without exceptions.

Cause of Failure:
The error is probably caused by the CustomXML. If you modify the CustomXML, the document can be loaded without exceptions. In the attached document “document_loads_successfully.docx” the CustomXML was modified a little bit, this document can then be loaded.

CustomXML of the document that cannot be loaded:

<item_723651488>a</item_723651488>

CustomXML of the document that can be successfully loaded:

<item_723651488>aa</item_723651488>

Regards
Ingo Gutzeit


#2

@gutzeit

We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-18887. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.


#3

Hi @tahir.manzoor
thank you very much for your quick response.

Regards
Ingo Gutzeit


#4

The issues you have found earlier (filed as WORDSNET-18887) have been fixed in this Aspose.Words for .NET 19.8 update and this Aspose.Words for Java 19.8 update.