Bug 144747 - FILEOPEN When opening any Hancom Word hwp document garbage is displayed
Summary: FILEOPEN When opening any Hancom Word hwp document garbage is displayed
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-27 08:10 UTC by kellnerp@earthlink.net
Modified: 2022-05-07 07:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A typical hwp file and what is displayed when trying to open it. Hancom Office 2010 version (29.50 KB, application/x-hwp)
2021-09-27 08:10 UTC, kellnerp@earthlink.net
Details
Garbage displayed when trying to open an hwp document (105.72 KB, image/png)
2021-09-27 08:14 UTC, kellnerp@earthlink.net
Details
Test HWPv5.0 file. It is zipped Compound File Binary Format. (25.50 KB, application/haansofthwp)
2021-11-24 17:39 UTC, DaeHyun Sung
Details
Test HWPv3.0 file. It is only Compound File Binary Format. (8.81 KB, application/haansofthwp)
2021-11-24 17:40 UTC, DaeHyun Sung
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kellnerp@earthlink.net 2021-09-27 08:10:41 UTC
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.
Comment 1 kellnerp@earthlink.net 2021-09-27 08:14:55 UTC
Created attachment 175292 [details]
Garbage displayed when trying to open an hwp document
Comment 2 Julien Nabet 2021-09-27 18:53:01 UTC
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
Comment 3 Ming Hua 2021-09-27 19:14:55 UTC
DaeHyun, I think you may be interested in this.
Comment 4 kellnerp@earthlink.net 2021-09-28 12:02:57 UTC
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.
Comment 5 DaeHyun Sung 2021-11-21 14:10:46 UTC
(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.
Comment 6 DaeHyun Sung 2021-11-24 17:39:20 UTC
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.
Comment 7 DaeHyun Sung 2021-11-24 17:40:20 UTC
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.
Comment 8 Kevin Suo 2021-12-30 10:50:27 UTC
Some more files which fails to open in LibreOffice are at:
https://www.ktc.go.kr/reportNewsList.do
Comment 9 Kevin Suo 2022-03-16 14:10:57 UTC
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.
Comment 10 DaeHyun Sung 2022-05-07 07:04:39 UTC
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.
Comment 11 DaeHyun Sung 2022-05-07 07:06:40 UTC
(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)