Bug 106944 - Examples for Open statement do not work, because file in root of drive C: not possible in Windows
Summary: Examples for Open statement do not work, because file in root of drive C: not...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Rafael Lima
URL:
Whiteboard: target:7.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-04 12:04 UTC by Thomas Krumbein
Modified: 2021-04-26 12:05 UTC (History)
4 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 Thomas Krumbein 2017-04-04 12:04:47 UTC
Using the Basic-Funktions for manipulating files needs a communication channal.

This is normaly delivert by FreeFile. 

In LO Version: 5.3.1.2 (x64)
Build-ID: e80a0e0fd1875e1696614d24c32df0f95f03deb2
CPU-Threads: 8; BS-Version: Windows 6.19; UI-Render: Standard; Layout-Engine: neu; 
Gebietsschema: de-DE (de_DE); Calc: group

on my System Windows 10 the Freefile command will always return 1 - so the Open-command get always an E/a Error.

Seems to be a broken FreeFile function?
Comment 1 Thomas Krumbein 2017-04-04 15:17:09 UTC
Additional comment:

Maybe it is not a LO problem, but a windows problem.

The error will only occur if path to file is "c:\" - so the root dic of the windows start partition.

Changing pathe (i.E. to d:\  or c:\testdir\ ) everything works as expected.

So I would recommend to change LO Help-files of pages  "Open" and "Freefile"

Both pages do have examples with root-dic to "c:\" - so both will create E/a errors.
Comment 2 Regina Henschel 2017-04-04 19:14:14 UTC
So I shift it to component "Documentation" and change subject. The same problem is for Open statement of kind Random and for Kill statement, because it is not possible to put a file into the root of drive C: at all.

Wrong examples are in these files (all in sbasic\shared): 03010103.xhp, 03020101.xhp, 03020102.xhp, 03020103.xhp, 03020104.xhp, 03020201.xhp, 03020202.xhp, 03020203.xhp, 03020204.xhp, 03020205.xhp, 03020301.xhp, 03020303.xhp, 03020405.xhp, 03020410.xhp, 03050500.xhp
Comment 3 Sophia Schroeder 2017-04-04 20:43:18 UTC
Something in this manner I was also just typing.
Are there more .xhp files with this problem
or just these Regina Henschel mentioned?

Anyway, I want to take a look tomorrow, 
at least in our Pootle - German project.
Comment 4 Rafael Lima 2021-03-30 12:10:03 UTC
I can confirm that this bug still persists in LO 7.1.

Examples that try to write to the "C:\" folder do not work due to lack of permission.

A note needs to be added in the Open statement help file (03020103.xhp) emphasizing that the user must have writing permissions to the folder where a file is being created.
Comment 5 Commit Notification 2021-04-05 14:33:32 UTC
Rafael Lima committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/ef7a4ac4e88c6142ed29acc15a6d28ec85e8b9ce

tdf#106944 Fix Basic examples using the Open statement
Comment 6 Buovjaga 2021-04-26 11:24:24 UTC
Rafael: is there more work to be done? If not, you can close as fixed.