Bug 107957 - Custom properties: wrong encoding after DOC import
Summary: Custom properties: wrong encoding after DOC import
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
Keywords: filter:doc
Depends on:
Blocks: DOC
  Show dependency treegraph
Reported: 2017-05-19 15:33 UTC by Vasiliy Shlykov
Modified: 2018-05-30 16:48 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Dialog box screenshot (59.40 KB, image/png)
2017-05-19 15:33 UTC, Vasiliy Shlykov
Sample doc file (35.50 KB, application/msword)
2017-05-22 08:06 UTC, Vasiliy Shlykov

Note You need to log in before you can comment on or make changes to this bug.
Description Vasiliy Shlykov 2017-05-19 15:33:12 UTC
Created attachment 133405 [details]
Dialog box screenshot

On the Linux platform after import of DOCX file into Writer custom properties names showed as "??????" in File -> Properties -> Custom Properties box. It seems that because of Cyrillic names of these properties.

When "Show Fields" are enabled, field that uses that properties shows it correctly.
Comment 1 Xisco Faulí 2017-05-19 18:15:05 UTC Comment hidden (obsolete)
Comment 2 Vasiliy Shlykov 2017-05-22 08:06:41 UTC
Created attachment 133448 [details]
Sample doc file

As you wish)
Comment 3 Xisco Faulí 2017-05-22 09:12:10 UTC
Hello Vasiliy,
Thanks for sharing the document. Instead of ???? what should it say in each field ?
Comment 4 Vasiliy Shlykov 2017-05-22 10:59:42 UTC
Names of properties in Russian.
Comment 5 Buovjaga 2017-05-26 19:27:49 UTC

Arch Linux 64-bit, KDE Plasma 5
Build ID: e60529fdfe0502f64e3c975f71539b28146943e8
CPU threads: 8; OS: Linux 4.10; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on May 26th 2017
Comment 6 Julien Nabet 2017-06-09 18:55:07 UTC
gdb trace:
#0  comphelper::OPropertyContainerHelper::registerPropertyNoMember (this=0x555557aa46f8, _rName="???", _nHandle=11, _nAttributes=128, _rType=invalid uno::Type, 
    _pInitialValue=uno::Any("string": "7807082653")) at /home/julien/lo/libreoffice/comphelper/source/property/propertycontainerhelper.cxx:141
#1  0x00007ffff4665e55 in comphelper::PropertyBag::addProperty (this=0x555557aa46f0, _rName="???", _nHandle=11, _nAttributes=128, 
    _rInitialValue=uno::Any("string": "7807082653")) at /home/julien/lo/libreoffice/comphelper/source/property/propertybag.cxx:146
#2  0x00007ffff463c3a9 in comphelper::OPropertyBag::addProperty (this=0x555557aa45f0, _rName="???", _nAttributes=128, _rInitialValue=uno::Any("string": "7807082653"))
    at /home/julien/lo/libreoffice/comphelper/source/property/opropertybag.cxx:327
#3  0x00007ffff1e5cf30 in sfx2::LoadOlePropertySet (i_xDocProps=uno::Reference to ((anonymous namespace)::SfxDocumentMetaData *) 0x555557a83988, i_pStorage=0x555557a5ccb0)
    at /home/julien/lo/libreoffice/sfx2/source/doc/docinf.cxx:161
#4  0x00007fffc28e05e9 in SwWW8ImplReader::ReadDocInfo (this=0x555557a7f200) at /home/julien/lo/libreoffice/sw/source/filter/ww8/ww8par.cxx:4755
#5  0x00007fffc28e164d in SwWW8ImplReader::CoreLoad (this=0x555557a7f200, pGloss=0x0) at /home/julien/lo/libreoffice/sw/source/filter/ww8/ww8par.cxx:4904
#6  0x00007fffc28e6618 in SwWW8ImplReader::LoadThroughDecryption (this=0x555557a7f200, pGloss=0x0) at /home/julien/lo/libreoffice/sw/source/filter/ww8/ww8par.cxx:5855
#7  0x00007fffc28e7e3e in SwWW8ImplReader::LoadDoc (this=0x555557a7f200, pGloss=0x0) at /home/julien/lo/libreoffice/sw/source/filter/ww8/ww8par.cxx:6171
#8  0x00007fffc28e8977 in WW8Reader::Read (this=0x555557a44360, rDoc=..., rBaseURL="file:///home/julien/lo/bugs/107957_customprop/custom_properties.doc", rPaM=SwPaM = {...})
    at /home/julien/lo/libreoffice/sw/source/filter/ww8/ww8par.cxx:6312
#9  0x00007fffc6d627f8 in SwReader::Read (this=0x555557a5cf70, rOptions=...) at /home/julien/lo/libreoffice/sw/source/filter/basflt/shellio.cxx:177
#10 0x00007fffc6edf0a2 in SwDocShell::ConvertFrom (this=0x555557861940, rMedium=...) at /home/julien/lo/libreoffice/sw/source/uibase/app/docsh.cxx:258
#11 0x00007ffff1ec8cd9 in SfxObjectShell::DoLoad (this=0x555557861940, pMed=0x555557877bf0) at /home/julien/lo/libreoffice/sfx2/source/doc/objstor.cxx:776
#12 0x00007ffff1f0b5d9 in SfxBaseModel::load (this=0x555557862250, seqArguments=uno::Sequence of length 14 = {...})
    at /home/julien/lo/libreoffice/sfx2/source/doc/sfxbasemodel.cxx:1787

I don't succeed in finding where is defined encoding :-(
Comment 7 Urmas 2017-10-22 12:15:40 UTC
In your DOC file, the property names are actually ?'s.
Please attach uncorrupted one.
Comment 8 QA Administrators 2018-05-02 15:47:19 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2018-05-30 16:48:25 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team