Bug 40743 - [EDITING] External references changed from relative to absolute path without notice
Summary: [EDITING] External references changed from relative to absolute path without ...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Spreadsheet (show other bugs)
Version: 3.4.3 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 10:16 UTC by Olivier Hallot
Modified: 2012-09-20 03:57 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
sample documents, see Comment 2 (32.76 KB, application/x-zip-compressed)
2011-09-10 01:55 UTC, Rainer Bielefeld Retired
Details

Description Olivier Hallot 2011-09-09 10:16:35 UTC
Under OpenOffice.org 3.2.x the following formula is entered in a blank sheet:

='File.ods'#Sheet1.A1

and stays as writen above.

The same formula opened in LibreOffice 3.3.x or 3.4.x gives the folowing syntax:

='file:///c:/Documents and Settings/olivier/My Documents/File.ods'#Sheet1.A1


that is, the relative path is transformed into an absolute path.

Either this is a undocumented feature or a bug, because there is no way I can see so far to stop this transformation and it breaks some of my macros.
Comment 1 Olivier Hallot 2011-09-09 10:44:06 UTC
possibly this is a dup of:

Bug #36387

Bug #35188
Comment 2 Rainer Bielefeld Retired 2011-09-10 01:54:09 UTC
Not reproducible at all with "LibreOffice 3.4.3 RC2 - WIN7 Home Premium (64bit) German UI [OOO340m1 (Build:302)]" and others.

I created a source.ods and a targetOOo311.ods. The input with a formula due to report will be modified immediately to some "='file:///c:/Docume...." in OOo after Enter. Same with OOo3.2.-dev and OOo 3.4.
Also the "='file:///c:/Docume...." only Looks absolute, but is relative.
As you see in my targetxxx.ods from sample, everything works identical in LibO and OOo. The DDE link should not work for you, because that one will be absolute "by design".

You can try to reproduce my results with attached test kit.

@Olivier:
Please check your results and leave a comment with your results, a sample document would be fine.

Please file Bug reports with status UNCONFIRMED if your are not absolutely sure that you contributed all required background information and that the problem will be reproducible with information you can provide!
Comment 3 Rainer Bielefeld Retired 2011-09-10 01:55:36 UTC
Created attachment 51026 [details]
sample documents, see Comment 2
Comment 4 Rainer Bielefeld Retired 2011-09-20 06:01:18 UTC
Closing Bug due to reporter's inactivity as INVALID.

@reporter:
Please feel free to reopen this bug if you find out that the problem still exists with the current stable LibreOffice version and if you can contribute requested additional information due to <http://wiki.documentfoundation.org/BugReport> (especially BugReport Details)!
Comment 5 Björn Michaelsen 2011-12-22 05:50:43 UTC
RESOLVED, FIXED or CLOSED bugs cant be KEYWORD NEEDINFO.
Comment 6 Christian Reis 2012-09-19 19:45:17 UTC
Rainer, I've encountered the same issue as Olivier. Namely, I enter a relative path in a spreadsheet and when I press enter it is converted into an absolute one. But I seem to now understand what you're saying -- it's a relative path, but displayed as an absolute one.

This is problematic when you are creating long formulas with many references to a external files that are within the same directory, since the full paths make the formula very long and editing of it, error-prone. With the relative path display, the formula can be viewed in a much more compact manner. Is there a reason to really always display them in the absolute format?

Note that I do have the relative paths save/restore:general option selected.
Comment 7 Christian Reis 2012-09-19 19:47:17 UTC
For others that run into this bug, it's worth mentioning that external references to XLS files seem to get corrupted when updating the links -- I ended up with references repeating the pathname in the form "file:///home/user/path/home/user/path/file" which leads to a linking error; ODF file formats work just fine
Comment 8 Rainer Bielefeld Retired 2012-09-20 03:57:29 UTC
(In reply to comment #6)
> it's a relative path, but displayed as an absolute one.

Yes, that's my experience
 
> This is problematic [...]  the full paths make
> the formula very long and editing of it, error-prone. 

Ah, I see your problem. May be you should discuss that on <http://ask.libreoffice.org/questions/> or a mailin list, and may be a result will be a suggestion for an enhancement, what you can submit in a different bug report.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.