Bug 156289 - Unhelpful error when slash is given in filename
Summary: Unhelpful error when slash is given in filename
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-15 02:23 UTC by David Chen
Modified: 2023-09-04 17:28 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Chen 2023-07-15 02:23:49 UTC
Description:
I was mistakenly trying to save a file with a date formatted with a slash, and was getting an unhelpful "Nonexistent object. Path to the file does not exist." error. I had looked around for advice on this issue, only to find other bugs, such as #90189 and forum posts regarding network file shares.
In the same vein as #95336, it would be a great improvement to user experience if the warnings were more specific when there are invalid character issues, instead of leaving them with a vague error that returns unhelpful results when looking it up. Thank you.

Steps to Reproduce:
1. Open a LibreOffice document
2. Try to save it as a new file
3. Mistakenly enter an invalid file name character such as `/`

Actual Results:
A somewhat unhelpful error, "Nonexistent object. Path to the file does not exist.", which may lead one to overestimate their issue, is given.

Expected Results:
The user should get an error warning them of their mistake, instead of being directed towards unrelated issues.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.5.3.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 12; OS: Linux 6.3; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 m_a_riosv 2023-07-15 09:55:59 UTC
I think the message it's from the OS not from LibreOffice.
This is in win11:
/downloads/_test/CF_2.ods
'El nombre de archivo no es valido'
Translation'The file name is invalid'

The message is in Spanish like my OS, even my LibreOffice UI is in English.
Version: 7.6.0.1 (X86_64) / LibreOffice Community
Build ID: 776eaf34564cbf3f034a0ba1fd1d5c32ff9ccf1c
CPU threads: 16; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Comment 2 Buovjaga 2023-09-04 17:28:44 UTC
(In reply to David Chen from comment #0)
> Description:
> I was mistakenly trying to save a file with a date formatted with a slash,
> and was getting an unhelpful "Nonexistent object. Path to the file does not
> exist." error. I had looked around for advice on this issue, only to find
> other bugs, such as #90189 and forum posts regarding network file shares.
> In the same vein as #95336, it would be a great improvement to user
> experience if the warnings were more specific when there are invalid
> character issues, instead of leaving them with a vague error that returns
> unhelpful results when looking it up. Thank you.
> 
> Steps to Reproduce:
> 1. Open a LibreOffice document
> 2. Try to save it as a new file
> 3. Mistakenly enter an invalid file name character such as `/`
> 
> Actual Results:
> A somewhat unhelpful error, "Nonexistent object. Path to the file does not
> exist.", which may lead one to overestimate their issue, is given.
> 
> Expected Results:
> The user should get an error warning them of their mistake, instead of being
> directed towards unrelated issues.

Forward slash is not an invalid character on Linux, but a directory delimiter: https://en.wikipedia.org/wiki/Path_(computing)

The error message is as helpful as it can get.