Issue 37325

Summary: Absolute URL stored in document, although settings forbid this
Product: General Reporter: kai.sommerfeld
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: bitsworthconsulting, issues
Version: 680m62   
Target Milestone: AOO Later   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description kai.sommerfeld 2004-11-17 13:34:38 UTC
The URL of the file to be used for an Image Button gets stored as an absolute
URL, even if   "store URLs relative to file system" is checked, which is the
deafult, BTW. (-> tools/options/load+store/general).
Comment 1 Frank Schönheit 2004-11-17 13:52:13 UTC
accepting
Comment 2 realname 2016-04-04 21:34:19 UTC
OO ODS
It's worse than that. If you have unchecked rel to file system, and you just place the filename in the link so that you can save as html to get rel path that actually works (ie. image name in same directory) the program (spreadsheet in this case) loses the filename on re-open.

LOOK! the fix is real simple.
1. always open save the file in Open Office format
2. HAVE SEPARATE MENUITEM called EXPORT AS
3. in the link box, place the filename and specify in checkbox to ALLOW OPEN WITH RELATIVE y/n (regardless of what is typed in)
4. in the EXPORT AS for say HTML, radio relative/fixed path with a textbox for the path only. For instance, whatever the doc path is, the filename is taken and and the path could be images/ or blank or absolute which would apply to all images.
Comment 3 realname 2016-04-04 21:40:36 UTC
ONE MORE THING-
in the OO options LOAD/SAVE General URL, this is most confusing.
instead, code out the EXPORT AS menuitem that will appear for any document. Then from that code and labeling, replace what is in the main if you like but present as default settings for documents export as. 

Your issue then will be saving the document with or without the override/change.
Comment 4 Marcus 2017-05-20 11:01:00 UTC
Reset assigne to the default "issues@openoffice.apache.org".