Apache OpenOffice (AOO) Bugzilla – Issue 119577
[From Symphony] The "file name" field change to "file name without extension" in AOO 3.4
Last modified: 2017-05-20 10:35:17 UTC
Created attachment 77794 [details] File Name Steps: 1. Launch MS Office 2010,new a Word document, save it as .docx and reopen, then insert a "file name" field into the docx (Insert-->Text--> Quick Parts). You can see the file's name was inserted into the file. 2.Launch AOO 3.4,open the attached sample file then check field. Problem: The "file name" field change to "file name without extension" one.
The field of File Name display format defined as 4 types as below in AOO: FULL = 0 //The content of the URL is completely displayed. PATH = 1 //Only the path of the file is displayed NAME = 2 //Only the name of the file is displayed NAME_AND_EXT = 3 //The file name including the file extension is displayed But in OOXML definition The field of file name including below field code and type: \* Caps //Capitalizes the first letter of each word \* FirstCap //Capitalizes the first letter of the first word \* Lower //ALl the character is Lower case \* Upper //ALl the character is Upper case \p //Add the file system's path to the file name So all the file name will contains file name and file extension. But we wrong map the file format to the file name without file extension.
Created attachment 78381 [details] Fix the issue of import file name field with file extension Root Cause: Since the different for file name field definition, AOO should import file name field with file name + file extension by default. Otherwise, the extension may lost. Solution: Modify the file name field format type. Other problems: Since the file name filed has support limitation, so below problem will be remained unfix. 1. if change the text of the field in MS Office 2007/2010 to make the content different with the correct file name content, AOO can not keep the snapshot content for file name field; 2. Some of the format code in OOXML can't be supported by AOO, like: \* Caps //Capitalizes the first letter of each word \* FirstCap //Capitalizes the first letter of the first word \* Lower //ALl the character is Lower case \* Upper //ALl the character is Upper case
It can be reproduced in AOO 3.4, change status to "CONFIRMED"
Hm, when I load the attached test document into AOO then the FileName field is not replaced with the filename, with or without the patch. What am I doing wrong?
Comment on attachment 78381 [details] Fix the issue of import file name field with file extension Can not verify the patch.
Thx, Andre And is there anything unclear any more, and could u help commit this fix. thx!
(In reply to comment #5) > Comment on attachment 78381 [details] > Fix the issue of import file name field with file extension > > Can not verify the patch. Hi, Andre Is there any problem for this patch, waiting for your response, thx!
"steve_y" committed SVN revision 1554781 into trunk: Bug 119577 - [From Symphony] The "file name" field change to "file name witho...
Verified the fix patch, it works.
verified on windows7 on AOO410m15(Build:9761) - Rev. 1583666 2014-04-01 13:53:14 (Di, 01 Apr 2014)