To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=63824
                  Issue #:|63824
                  Summary:|Links to files on file servers don't preserve the
                          |first path component.
                Component:|Word processor
                  Version:|OOo 2.0.2
                 Platform:|PC
                      URL:|
               OS/Version:|Windows, all
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|mru
              Reported by:|gnustavo





------- Additional comments from [EMAIL PROTECTED] Thu Mar 30 08:16:31 -0800 
2006 -------
I tested this on a Windows XP using OOo 2.0.2.

- Create a new text document, and save it on a file server like
"\\server\share\path\to\doc.odt".  (I'm not sure you need to save it once first,
but this is what I did.)
- Go Insert -> Hyperlink.
- Use the folder button to navigate to a file contained in the samme file server
so that the file path is something like "\\server\share\path\to\file".  It
doesn't need to be on the same directory or even in the same share, just in the
same server.
- Insert some text
- Click Apply
- Click Close
- Save the file again.

Hover the mouse button over the link you inserted to see that the URL it
presents is like "file:///server/share/path/to/file".  Click on it to make sure
you can open the linked to file.

Now, copy the file you just created to your local harddrive and open it.  Hover
the mouse over the link and note that the URL is different than it was.  It is
now like this: "file:///share/path/to/file".  Note that it is missing the first
component, which identifies the file server.

Repeat the whole procedure, starting by creating a new text document, but
instead of saving it on the file server, save it directly on your local hard
drive.  Hover the mouse over the link to see that it is correct.

I openned up the two files, the one created on the server and the one created on
the local drive, and compared the content.xml of them both.  The difference is
that in the file created locally I see:

  <text:a xlink:type="simple" xlink:href="//server/share/path/to/file.odt">
      <text:span text:style-name="T13">Windows</text:span>
  </text:a>

And in the file created on the server I see:

  <text:a xlink:type="simple" xlink:href="/share/path/to/file.odt">
      <text:span text:style-name="T13">Windows</text:span>
  </text:a>

It seems that when OOo saves the link path it strips the server component and
inserts a relative path if the file containing the link resides in the same 
server.

Gustavo.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to