Bug 449661 - Exporting to docbook/XHMTL error
Summary: Exporting to docbook/XHMTL error
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: exporter (show other bugs)
Version: Git
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-05 17:03 UTC by Jessica
Modified: 2022-02-27 21:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.33.80 (KDE releases 22.03.80)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jessica 2022-02-05 17:03:54 UTC
Exporting to docbook gives following error:some errors happened when exporting the images




SOFTWARE/OS VERSIONS
Windows 10
git

ADDITIONAL INFORMATION
Comment 1 Jessica 2022-02-05 17:06:15 UTC
Same error for exporting to XHTML

I think it's caused by this image error: https://bugs.kde.org/show_bug.cgi?id=449347
Comment 2 Jessica 2022-02-18 18:24:23 UTC
*** Removed by KDE Sysadmin for violation of the KDE Community Code of Conduct ***
Comment 3 Oliver Kellogg 2022-02-26 09:13:06 UTC
Git commit 02e40615af66f5bffbc4766af0c674e67ce73a78 by Oliver Kellogg.
Committed on 26/02/2022 at 09:12.
Pushed by okellogg into branch 'master'.

Fix writing of output files on export to DocBook/XHTML:

umbrello/docgenerators/docbook2xhtmlgeneratorjob.cpp
- In function run(), after call to xsltSaveResultToFd() close the
  tmpXhtml file.

umbrello/docgenerators/docbookgeneratorjob.cpp
- In function run(),
  - after call to umlDoc->saveToXMI(file) close file;
  - after call to xsltSaveResultToFd() close the tmpDocBook file.

umbrello/umlmodel/umlrole.cpp
- In function saveToXMI address error about redefined attribute reported
  by xmlParseFile() called from {Docbook,Docbook2Xhtml}GeneratorJob :
  Remove writing of attribute "visibility", it is already written by
  UMLObject::save1().

umbrello/version.h
- Increment XMI1_FILE_VERSION to 1.7.6 and XMI2_FILE_VERSION to 2.0.3
  due to changed generation of AssociationEnd attribute "visibility".

M  +1    -0    umbrello/docgenerators/docbook2xhtmlgeneratorjob.cpp
M  +3    -0    umbrello/docgenerators/docbookgeneratorjob.cpp
M  +0    -2    umbrello/umlmodel/umlrole.cpp
M  +2    -2    umbrello/version.h

https://invent.kde.org/sdk/umbrello/commit/02e40615af66f5bffbc4766af0c674e67ce73a78
Comment 4 Oliver Kellogg 2022-02-27 21:56:25 UTC
Remaining problems were addressed by fixing bug 409411.