This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 45874 - IOException after copy/paste
Summary: IOException after copy/paste
Status: VERIFIED WORKSFORME
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-05 18:59 UTC by Tim Lebedkov
Modified: 2004-09-28 19:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (1.84 KB, text/plain)
2004-07-05 18:59 UTC, Tim Lebedkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2004-07-05 18:59:00 UTC
In the explorer:
- copy from the local menu over a .gif file
- paste it in another directory
=> IOException (unreproducible)
Comment 1 Tim Lebedkov 2004-07-05 18:59:27 UTC
Created attachment 16135 [details]
Stack trace
Comment 2 Marian Mirilovic 2004-08-02 13:21:44 UTC
java.io.IOException: VCS file Continue.gif already exists in CVS
C:\tasklist\trunk.
	at
org.netbeans.modules.vcscore.VcsFileSystem.createData(VcsFileSystem.java:3638)
	at
org.openide.filesystems.AbstractFileObject.createData(AbstractFileObject.java:388)
	at org.openide.filesystems.FileUtil.copyFileImpl(FileUtil.java:62)
Comment 3 Martin Entlicher 2004-08-02 13:56:21 UTC
This seems to be a problem of the process that is performing the copy,
it should handle the existing files. The VcsFileSystem can not do
anything with it, the file simply can not be created.

The steps how to reproduce this would be valuable, but since you wrote
that it's unreproducible, it might be that the files are not fully
refreshed or something like that.

Moving to openide/filesystems for evaluation.
Comment 4 rmatous 2004-08-02 15:02:24 UTC
If its unreproducible I can't say nothing more than it can be probably
caused by:
- race condition: such file was created by other thread after checking
that such file didn't exist and then its creation failed
- bugy impl. of VcsFileSystem or MasterFS

Reassigned back.
Comment 5 Martin Entlicher 2004-08-02 15:50:20 UTC
I do not see how this can be a bug of VcsFileSystem. When
File.createNewFile () returns false, I can not do anything with it. If
it's a race condition, it's ouside of VcsFileSystem, I do not have any
sychronization.

Resolving as worksforme, because without reproducible steps we're
apparently unable to find the problem.
Comment 6 Tim Lebedkov 2004-09-28 19:54:50 UTC
ok