[Libreoffice-bugs] [Bug 121337] New: FileDateTime("\\nonexistent\smb\path") returns bogus result rather than throwing error

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Nov 10 19:34:11 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=121337

            Bug ID: 121337
           Summary: FileDateTime("\\nonexistent\smb\path") returns bogus
                    result rather than throwing error
           Product: LibreOffice
           Version: 6.2.0.0.alpha1+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: jim.avera at gmail.com

Description:
In BASIC macro code, FileDateTime("/unix/style/nonexistentfile") throws an
error as it should, which can be caught with the "on error" mechanism.

However FileDateTime("\\smb\style\nonexistentfile"), when executed on a Unix
platform at least, returns a bogus result string "01/03/-0001 00:00:00" instead
of throwing an error.

Steps to Reproduce:
1. In a BASIC macro, call FileDateTime("\\bogus\path") in the context of an "on
error" hook

(or run the macro in the attached demo spreadsheet)


Actual Results:
A bogus result string is returned. An error is not thrown.

Expected Results:
Should throw an error, or in any case behave the same way with Unix and
SMB-style paths.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.2.0.0.alpha1
Build ID: ff46ad24d1d3cbcea45895520483ed1fd4ff488b
CPU threads: 12; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181110/f31c15c6/attachment-0001.html>


More information about the Libreoffice-bugs mailing list