Bug 449661

Summary: Exporting to docbook/XHMTL error
Product: [Applications] umbrello Reporter: Jessica <jess.jones.unitedkingdom>
Component: exporterAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal CC: okellogg
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 2.33.80 (KDE releases 22.03.80)

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.