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 174021

Summary: local files deleted when downloading synchronized files from remote server only with subversion checkout
Product: versioncontrol Reporter: amercado <amercado>
Component: SubversionAssignee: issues@versioncontrol <issues>
Status: RESOLVED FIXED    
Severity: blocker CC: tmysik
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:
Attachments: log for proof of bug with remote download and svn

Description amercado 2009-10-07 21:17:45 UTC
I have an issue where when i try to download a file from the remote server that my project is synchronized with, it will
delete my local file every time and the output log says, could not download file <filename> (Unknown reason). This only
happens when i have a project that is an svn checkout, it does not happen when i have a project set up that is not an
svn checkout. I have visited the netbeans irc channel on freenode and they suggested reporting a bug ASAP on this.
Thanks for any help offered.
Comment 1 Ondrej Vrabec 2009-10-08 02:23:33 UTC
Please attach the message log immediately after the file is deleted (HOMEDIR/.netbeans/6.7/var/log/message.log)
What kind of project is that (java, c++, php)?
> when i try to download a file from the remote server that my project is synchronized with
How? With subversion (svn update) or with any other tool?
Comment 2 amercado 2009-10-15 17:27:33 UTC
Created attachment 89567 [details]
log for proof of bug with remote download and svn
Comment 3 amercado 2009-10-15 17:30:44 UTC
I have added the attachment of the log. I see that netbeans has issues with the temporary renaming of files and
downloading from remote server when downloading inside an svn checkedout project. My Project is a PHP project by the
way. I wonder if in the "Run Configuration" settings i should check the "Upload Files Directly" option so it prevents
the .old version of a file to be downloaded. Thanks for your help. 
Comment 4 amercado 2009-10-15 17:34:04 UTC
ok I just tried checking that option and that didn't seem to work, so there goes that idea... :(
Comment 5 Ondrej Vrabec 2009-10-15 19:51:33 UTC
So the local file C:\Users\Antonio\Documents\Bookit-dev\bookit.com\subdomains\images\_javascript\from\shellv3.js is
deleted from your hard drive? Some messages from the log file show this path.
Comment 6 amercado 2009-10-15 19:54:58 UTC
yes that is correct, it completely deletes it. If i were to commit that repo folder to svn, it would show that the file
was "locallly deleted". 
Comment 7 Ondrej Vrabec 2009-10-15 19:59:46 UTC
One more question: is it only this particular file or any other file you try to download?
Comment 8 amercado 2009-10-15 20:09:30 UTC
it is every file i try to download that is a checked out svn repo. there have been times where i have downloaded entire
directories, to see if it was JUST the specific files i was trying, and it would delete the entire directory. 
Comment 9 Ondrej Vrabec 2009-10-16 10:23:15 UTC
fixed in cdev #b939d6aab3ab

problem occurred only with a javahl client (not with a commandline client) - ignored files (e.g.
C:\Users\Antonio\Documents\Bookit-dev\bookit.com\subdomains\images\_javascript\from\shellv3.js~) were accidentally
considered as versioned and we tried to move them via 'svn move' which was totally wrong (such command fails). Now these
files are correctly moved via java.io.File.renameTo
Comment 10 Quality Engineering 2009-10-17 11:28:08 UTC
Integrated into 'main-golden', will be available in build *200910170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b939d6aab3ab
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #174021 - local files deleted when downloading synchronized files from remote server only with subversion checkout
svn client can't move ignored files, so they must be renamed via java.io
Comment 11 amercado 2009-10-19 15:45:12 UTC
Thanks guys you are quick. Thanks for all the support and dedication you put into netbeans, i love this IDE.