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@lists.freedesktop.org
          Reporter: jim.av...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to