Created attachment 175291 [details] A typical hwp file and what is displayed when trying to open it. Hancom Office 2010 version When trying to open an hwp document garbage is displayed. This occurs with any hwp document I try to open. hwp is the extension for Hancom Office's Hangul Word program currently in wide use among Korean speakers in Korea. A copy of the document and what appears on the screen is attached.
Created attachment 175292 [details] Garbage displayed when trying to open an hwp document
Just for the record, on pc Debian x86-64 with master sources updated today, I got a message indicating that the file needs some repair but even when choosing yes it fails to open. I noticed these logs on console: WPSDocument::isFileFormatSupported() Throwing InvalidHeaderException Throwing InvalidHeaderException WPSDocument::isFileFormatSupported() warn:oox.storage:22527:22527:oox/source/helper/zipstorage.cxx:68: ZipStorage::ZipStorage exception opening input storage com.sun.star.io.IOException message: /home/julien/lo/libreoffice/package/source/xstor/xfactory.cxx:261 warn:oox:22527:22527:oox/source/crypto/DocumentDecryption.cxx:166: Encrypted package does not contain DataSpaceMap Throwing InvalidHeaderException WPSDocument::isFileFormatSupported() Throwing InvalidHeaderException AbiDocument::isFileFormatSupported Found xml parser severity error Document is empty WPSDocument::isFileFormatSupported() WPSDocument::isFileFormatSupported() WPSDocument::isFileFormatSupported() WPSDocument::isFileFormatSupported() Throwing InvalidHeaderException warn:oox.storage:22527:22527:oox/source/helper/zipstorage.cxx:68: ZipStorage::ZipStorage exception opening input storage com.sun.star.io.IOException message: /home/julien/lo/libreoffice/package/source/xstor/xfactory.cxx:261 warn:oox:22527:22527:oox/source/crypto/DocumentDecryption.cxx:166: Encrypted package does not contain DataSpaceMap warn:oox.storage:22527:22527:oox/source/helper/zipstorage.cxx:68: ZipStorage::ZipStorage exception opening input storage com.sun.star.io.IOException message: /home/julien/lo/libreoffice/package/source/xstor/xfactory.cxx:261 ... warn:oox.storage:22527:22527:oox/source/helper/zipstorage.cxx:68: ZipStorage::ZipStorage exception opening input storage com.sun.star.io.IOException message: /home/julien/lo/libreoffice/package/source/xstor/xfactory.cxx:261 warn:oox:22527:22527:oox/source/crypto/DocumentDecryption.cxx:166: Encrypted package does not contain DataSpaceMap VisioDocument: version 0 Found xml parser severity error Document is empty
DaeHyun, I think you may be interested in this.
For what it is worth, I have seen the same garbage on every file I've tried opening. Whether it is worth uploading more files is up to you guys.
(In reply to Ming Hua from comment #3) > DaeHyun, I think you may be interested in this. I checked late. This bug occurs when opening HWPv5.0 on LibreOffice. LibreOffice only supports HWPv3.0(HWP97) So, Need to add to except HWPv5.0 message.
Created attachment 176476 [details] Test HWPv5.0 file. It is zipped Compound File Binary Format. Test HWPv5.0 file. It is zipped Compound File Binary Format.
Created attachment 176477 [details] Test HWPv3.0 file. It is only Compound File Binary Format. Test HWPv3.0 file. It is only Compound File Binary Format. It only supported LibreOffice.
Some more files which fails to open in LibreOffice are at: https://www.ktc.go.kr/reportNewsList.do
This had been in ASSIGNED for status for nearly 4 month. I reset it to NEW. @sungdh86 if you are working on fixing this please set it back to ASSIGNED and fill in the assignee's name. @Caolán I see you are commiting some hwp commits these days thus I add you to cc. Feel free to un-cc if this is not your area of interest.
Sorry.I forgot to check because I was busy. I was late for the confirmation due to various reasons, such as changing jobs and getting married from late 2021 to 2022. I'll check it.
(In reply to Kevin Suo from comment #8) > Some more files which fails to open in LibreOffice are at: > https://www.ktc.go.kr/reportNewsList.do That link's file is HWP5.0 format. LibreOffice is only supported HWP3.0(released 1997) format. I'll deal with HWP3.0 format. (HWP5.0 format is zip-based compound format. If I have a time, I'll support to HWP5.0 format)