-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RI mapper in the NamespacePrefixMapperUtils#getPrefixMapperRelationshipsPart #333
Comments
Thanks for this. You are correct to suggest tryRIforRelationshipsPart :-) |
campbellr
added a commit
to campbellr/docx4j
that referenced
this issue
Feb 6, 2020
This caused the first call to getPrefixMapperRelationshipsPart to always return `null`. All subsequent calls would correctly return the correct (cached) version. The end result is essentially a reoccurence of plutext#333, where Relationship tags are incorrectly prefixed with `rel:`, which breaks LibreOffice.
campbellr
added a commit
to campbellr/docx4j
that referenced
this issue
Feb 6, 2020
This caused the first call to getPrefixMapperRelationshipsPart to always return `null`. All subsequent calls would correctly return the correct (cached) version. The end result is essentially a reoccurence of plutext#333, where Relationship tags are incorrectly prefixed with `rel:`, which breaks LibreOffice.
campbellr
added a commit
to campbellr/docx4j
that referenced
this issue
Feb 6, 2020
This caused the first call to getPrefixMapperRelationshipsPart to always return `null`. All subsequent calls would correctly return the correct (cached) version. The end result is similar to plutext#333, where Relationship tags are incorrectly prefixed with `rel:`, which breaks LibreOffice. Except that it only occurs the first time a docx is saved.
TheDanDLion
pushed a commit
to LegalSifter/docx4j
that referenced
this issue
Aug 22, 2023
This caused the first call to getPrefixMapperRelationshipsPart to always return `null`. All subsequent calls would correctly return the correct (cached) version. The end result is similar to plutext#333, where Relationship tags are incorrectly prefixed with `rel:`, which breaks LibreOffice. Except that it only occurs the first time a docx is saved.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If system uses Java 9/10, then
NamespacePrefixMapperUtils#getPrefixMapperRelationshipsPart
returnstryUsingRI(m)
mapper.I think it necessary to use
tryRIforRelationshipsPart
.With
tryUsingRI(m)
mapper relationships generates with namespace. LibreOffice unable to open docx with namespaces in the relationships.XML relationships sample:
With docx4j 3.3.6 relationships are generated without namespace:
The text was updated successfully, but these errors were encountered: