VirtualBox

Opened 14 years ago

Closed 8 years ago

#6932 closed defect (obsolete)

Cannot write data to files on shared folder

Reported by: Evgeny Owned by:
Component: shared folders Version: VirtualBox 3.2.0
Keywords: Cc:
Guest type: Windows Host type: Windows

Description (last modified by aeichner)

Shared folder issues with Virtualbox 3.2.0 running in a WinXP SP3 box, with a WinXP SP3 guest, also tested with VBox 3.2.2 WinXP SP3 guest on Debian host.

I'm have an application, that writes data to files. My share on guest mapped as network drive Z. When trying to write some data to existing file, located on Z, i got an "access denied" exception. When doing the same thing to files on drive C, all is ok. When changing the contents of the file on Z with notepad.exe, all is ok.

I wrote a simple app, demonstrating that problem. It's source code and compiled exe is attached in an archive. Run exe, put a path to the file on share in edit box and press ok. If no such file exist, it's will be created and data will be succesfully written. But if such file exist, you got an "access denied" or "unknown error" message box.

The part of code causing the problem is located in VBOX_FALL_TEST1Dlg.cpp:

//... skipped

CFile file;
// create if not exist
file.Open(fileName, CFile::modeCreate | CFile::modeNoTruncate );
file.Close();
        
// open to write
file.Open(fileName, CFile::modeWrite );
file.SeekToEnd();

CString s = "adsasd";

// write. Here throws an exception
file.Write(s, s.GetLength());
file.Close();

//... skipped

Archive and VBox.log attached.

Attachments (2)

vbox_fall_test1.zip (14.0 KB ) - added by Evgeny 14 years ago.
Source code and executable
VBox.log (43.7 KB ) - added by Evgeny 14 years ago.
VirtualBox log

Download all attachments as: .zip

Change History (4)

by Evgeny, 14 years ago

Attachment: vbox_fall_test1.zip added

Source code and executable

by Evgeny, 14 years ago

Attachment: VBox.log added

comment:1 by Evgeny, 14 years ago

And sorry for my English :)

comment:2 by aeichner, 8 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette