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 157373 - Netbeans deletes files without warning after name case change
Summary: Netbeans deletes files without warning after name case change
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-23 17:01 UTC by andylaw
Modified: 2009-04-28 12:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andylaw 2009-01-23 17:01:19 UTC
Under certain not-too-difficult-to-imagine circumstances, Netbeans deletes files without warning.

Possibly similar to 151071 and 153828, but appears to be different.


Steps to reproduce:

1) In a project under subversion version control, create a new file on disk within the subversion-controlled tree using 
drag-and-drop in the finder (in my original observation, I dragged an image file from a browser window into a directory 
on disk.

2) Bring Netbeans to the front and observe that the file has been recognised by Netbeans as existing.

3) Bring the Finder to the front and change the case of the filename (in my case, I changed the first character to 
uppercase).

4) Bring Netbeans to the front again. The file will vanish from Netbeans and from disk.

This is nasty.
Comment 1 Ondrej Vrabec 2009-01-29 09:10:51 UTC
fixed

changeset   : 115095:49f05a944068
author      : Ondrej Vrabec <ovrabec@netbeans.org>
date        : Thu Jan 29 09:20:00 CET 2009
summary     : #157373 - Netbeans deletes files without warning after name case change

Worked fine on Unix/Linux platforms.

The problem occurred even on the windows OS, not just Mac. Mac (just like Win) seems to ignore lower and uppercase in
filenames, so the svn module could not distinguish between "file" and "FILE".
Working OK now, but note though that it works cleanly only with unversioned files, moving versioned files onto files
with the same name (distinguished only by case) in a wc can lead to broken working copy and leave some files statuses as
"missing" (because in such case the NB svn module would not delete the old file).
Comment 2 Quality Engineering 2009-01-30 08:47:04 UTC
Integrated into 'main-golden', will be available in build *200901300228* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/49f05a944068
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #157373 - Netbeans deletes files without warning after name case change
fixing a problem, when the svn module deleted new created files without a notification.
Comment 3 Petr Dvorak 2009-04-28 12:09:44 UTC
V.