-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Flat OPC and cloning features are broken #1814
Comments
I've tested some more, and found out the following:
|
@twsouthwick and @mikeebowen, any thoughts on this bug? |
Thanks for the report - I reworked the creation of packages and was a little unsure of this scenario. I'll take a look. |
This was referenced Nov 19, 2024
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Describe the bug
Based on my analysis, the Flat OPC and cloning features are "broken" since v3.0.1:
WordprocessingDocument
instances no longer have the relationship parts.WordprocessingDocument
created from a Flat OPC document or string throws anOpenXmlPackageException
.To Reproduce
To reproduce, have a look at the OpenXmlSdtTests repo that I created for this purpose. I have created several xUnit-based projects that test the same features for the following versions:
Package
being obsolete,Observed behavior
WordprocessingDocument
instances created usingWordprocessingDocument.FromFlatOpcString(xml)
no longer have the relationship parts. Up to and including v3.0.0, those parts appeared.WordprocessingDocument
instance created usingWordprocessingDocument.FromFlatOpcString(xml)
can no longer be cloned. Calling theClone()
method or its overloads will throw an error.Expected behavior
WordprocessingDocument
instances can be cloned (as before).Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: