Bug 4045 - Delete fails right after CopyTo method
Summary: Delete fails right after CopyTo method
Status: NEW
Alias: None
Product: jCIFS
Classification: Unclassified
Component: core (show other bugs)
Version: 1.2
Hardware: Other Windows XP
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact:
Depends on:
Reported: 2006-08-23 10:08 UTC by Sriram Puligundla
Modified: 2009-04-13 08:15 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Sriram Puligundla 2006-08-23 10:08:14 UTC
I have to move a SMB file from one location to another. The SMB file could be a file or directory. I used copyTo method to copy SMB file from one location to another location. After the copy is done, I would like to delete the source file or directory. When I attempt to delete the source file, I get SMBException. The exception is pasted below. However, I could delete the destination file without any problem. 

Caused by: jcifs.smb.SmbException: The process cannot access the file because it is being used by another process.
	at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:503)
	at jcifs.smb.SmbTransport.send(SmbTransport.java:603)
	at jcifs.smb.SmbSession.send(SmbSession.java:229)
	at jcifs.smb.SmbTree.send(SmbTree.java:102)
	at jcifs.smb.SmbFile.send(SmbFile.java:688)
	at jcifs.smb.SmbFile.delete(SmbFile.java:2115)
	at jcifs.smb.SmbFile.delete(SmbFile.java:2059)

I think this is a bug. If I am doing something wrong, please let me know. If you   need more information, please let me know.
Comment 1 Gerald (Jerry) Carter (dead mail address) 2009-04-13 08:15:06 UTC
Reassigning since current assignee mail addr is bouncing