<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - "General input/output" opening a file through a symlink to a GVfs mount"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=109520">109520</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"General input/output" opening a file through a symlink to a GVfs mount
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.3.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rdiezmail-libreoffice@yahoo.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have written a script to help me mount Windows shares with GVfs, it's here:

<a href="https://github.com/rdiez/Tools/blob/master/MountWindowsShares/mount-windows-shares-gvfs.sh">https://github.com/rdiez/Tools/blob/master/MountWindowsShares/mount-windows-shares-gvfs.sh</a>

The script is just a fancy wrapper that runs gvfs-mount and creates symbolic
links to all the mount points.
Without the symlinks, finding the mountpoints is awkward (for me).

I am using Ubuntu 16.04. I have installed Launchpad's "official" PPA to get
LibreOffice 5.3.

If I open a Writer document through a symbolic link like this:

/home/rdiez/WindowsShares/WindowsPcRdiez/Temp/MyDoc.doc

I then get this error:

General input/output error while accessing
/home/rdiez/WindowsShares/WindowsPcRdiez/Temp/MyDoc.doc

However, if I open the same file directly through the GVfs mountpoint (without
using the symlink):

/run/user/1000/gvfs/smb-share:domain=MY-WINDOWS-PC,server=my-windows-pc,share=rdiez,user=MYUSER/Temp/MyDoc.doc

Then it opens fine.

Other programs like Emacs can open the document file over the symlink without
problems.

1) The first issue is probably in Writer. It should report where the error is
coming from, and some sort of specific error message or error code, instead of
a generic error.

I mean that Writer is probably discarding error information along the way. That
makes it difficult to troubleshoot problems. This is not the first time I see
LibreOffice not reporting error causes accurately. This looks like a general
design or structural shortcoming in LibreOffice.

2) The underlying error is likely in some GVfs library, but it is difficult to
report or to argue with the GNOME developers without an real scenario where an
application hits the problem. That is the main reason why I am creating this
bug.

I hope that you could tell me (or even better, the GNOME developers) where
exactly this error is coming from, and what error code is being returned (that
Writer does not display to the user).

Many thanks in advance,
  rdiez</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>