https://bugs.freedesktop.org/show_bug.cgi?id=77902

Jeff H <jeff_he...@sil.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jeff_he...@sil.org

--- Comment #1 from Jeff H <jeff_he...@sil.org> ---
I have found a work-around to this bug, but it is messy and probably very
dependent on the version of Linux being used. The work-around is described
here:
http://ask.libreoffice.org/en/question/32488/calc-basic-cant-append-to-network-text-file-from-linux/

I would appreciate it if someone could confirm this bug, so that maybe we could
move towards a solution.

To recap, I access our server from Calc BASIC with a path like this:
"file://cdb.sil.org/server/folder/file". I run this path through ConvertToURL
before using it; on Windows machines the "file:" prefix stays the same, on
Linux machines it changes to "smb:". In this way, all of our API file accesses
to our server (StoreAsURL, StoreToURL, LoadComponentFromURL, etc.) work on both
systems. But if I use the basic Open For Append or Open For Output BASIC
commands with these same paths, Linux access to the "smb://cdb..." paths will
fail with a Device I/O error. I can use Open For Input with the "smb://cdb..."
paths successfully, but not Append or Output.

My work-around starts with the fact that any Linux "smb://" access on a mounted
share actually has a "normal" file access somewhere in the system, if you can
find it. On our Linux Mint 16 systems, the Samba file access to our server gets
converted at some level to this "normal" Linux path:

/run/user/1000/gvfs/smb-share:server=cdb.sil.org,share=server/

So my work-around code manually builds up this server path, and whenever I want
to use smb:// (which LibreOffice refuses to convert for the Open Append or
Output commands), I manually put in this long, messy path for direct access to
the file.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to