<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 - FileDateTime("\\nonexistent\smb\path") returns bogus result rather than throwing error"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121337">121337</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>FileDateTime("\\nonexistent\smb\path") returns bogus result rather than throwing error
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.2.0.0.alpha1+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>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>BASIC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jim.avera@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>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</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>