Bug 81736 - Writer cannot import variable Ref fields from .doc or .docx and instead displays text "Show variable" and "Set variable"
Summary: Writer cannot import variable Ref fields from .doc or .docx and instead displ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.5.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL: http://mpeg.chiariglione.org/sites/de...
Whiteboard:
Keywords: filter:doc
: 103952 (view as bug list)
Depends on:
Blocks: DOC-Fields
  Show dependency treegraph
 
Reported: 2014-07-25 09:15 UTC by Pablo Rodríguez
Modified: 2020-09-25 12:53 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
fields updated and displayed in Word 2003 (6.73 KB, image/png)
2014-07-25 10:59 UTC, Pablo Rodríguez
Details
fields updated and not displayed in current Writer nightly build (19.97 KB, image/png)
2014-07-25 11:00 UTC, Pablo Rodríguez
Details
minimal file that shows the issue (112.00 KB, application/msword)
2014-07-29 15:52 UTC, Pablo Rodríguez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Rodríguez 2014-07-25 09:15:12 UTC
I have experienced this before with documents at work: LO Writer-4.2.5 cannot import comment fields from .doc (and possibly .docx) files.

http://mpeg.chiariglione.org/sites/default/files/files/standards/parts/docs/w14331.zip contains a file that shows the problem. The footer from page 1 doesn’t display data for the following fields:

   Document type:   
   Document subtype:   
   Document stage:   
   Document language:   

Sorry for my poor description, but I think this issue is a burden for converting quite a few documents in corporate environments.

Many thanks for your help,

Pablo
Comment 1 retired 2014-07-25 09:31:36 UTC Comment hidden (obsolete)
Comment 2 Pablo Rodríguez 2014-07-25 10:59:34 UTC
Created attachment 103439 [details]
fields updated and displayed in Word 2003
Comment 3 Pablo Rodríguez 2014-07-25 11:00:25 UTC
Created attachment 103441 [details]
fields updated and not displayed in current Writer nightly build
Comment 4 Pablo Rodríguez 2014-07-25 11:01:33 UTC Comment hidden (obsolete)
Comment 5 Pablo Rodríguez 2014-07-25 11:16:07 UTC
I have tested the file with libreoffice-4-3~2014-07-21_10.49.42_LibreOfficeDev_4.3.1.0.0_Linux_x86_rpm.tar.gz (current nigthly build) and removing my old user profile.

Although my previous report was too fuzzy, I’m afraid that the bug is legitimate.
Screeenshots attached for Word 2003 and Writer 4.3dev.

Updating fields is required in Word for them to be displayed (at least in Windows).

Updating fields in Writer (also with F9) displays no text. Ctrl+F9 displays field names only.
Comment 6 tommy27 2014-07-26 11:46:53 UTC Comment hidden (obsolete)
Comment 7 Pablo Rodríguez 2014-07-26 13:33:02 UTC Comment hidden (obsolete)
Comment 8 Robinson Tryon (qubit) 2014-07-26 22:25:17 UTC
(In reply to comment #0)
> I have experienced this before with documents at work: LO Writer-4.2.5
> cannot import comment fields from .doc (and possibly .docx) files.
> 
> http://mpeg.chiariglione.org/sites/default/files/files/standards/parts/docs/
> w14331.zip contains a file that shows the problem. The footer from page 1
> doesn’t display data for the following fields:
> 
>    Document type:   
>    Document subtype:   
>    Document stage:   
>    Document language:   

CONFIRMED on Ubuntu 12.04.4 + LO 4.3.0.3

The example file is kind of huge at 457 pages and 6.4MB. Would it be possible to chop down the example file to 1-2 pages and then upload it to Bugzilla?
Comment 9 Pablo Rodríguez 2014-07-27 20:27:35 UTC
(In reply to comment #8)
> The example file is kind of huge at 457 pages and 6.4MB. Would it be
> possible to chop down the example file to 1-2 pages and then upload it to
> Bugzilla?

As in comment #1, when displaying this file CPU goes to 100%, although this is not the issue of this bug report.

I don’t see any problem in removing anything except the footer from the first page, but I’m on Linux and I’m afraid I don’t have access to a computer with Windows right now.
Comment 10 Pablo Rodríguez 2014-07-29 15:52:18 UTC
Created attachment 103647 [details]
minimal file that shows the issue
Comment 11 Pablo Rodríguez 2015-06-10 21:23:31 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2016-09-20 10:00:51 UTC Comment hidden (obsolete)
Comment 13 Pablo Rodríguez 2016-09-20 19:44:12 UTC
Bug stays the same in LO-5.2.1.2 (Fedora 23).
Comment 14 Buovjaga 2016-11-24 10:29:29 UTC
*** Bug 103952 has been marked as a duplicate of this bug. ***
Comment 15 Timur 2018-01-04 16:22:08 UTC
There could be multiple issues here when opening DOC and DOCX:
- from attachment 103647 [details]: LO displays text "Set variable VariableName1 Set variable VariableName2..." that it shouldn't 
- from attachment 103647 [details]: LO displays text "Show variable VariableName1", "Show variable VariableName2..." instead of just variable names
- from simple test case with bookmark field references created in MS Word (both DOC or DOCX): LO shows "VariableName1" instead of defined variable name

Looks like w:instrText field: http://www.officeopenxml.com/WPfieldInstructions.php.
Comment 16 QA Administrators 2019-01-05 03:41:44 UTC Comment hidden (spam)