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 122127 - IDE deletes content of my php files
Summary: IDE deletes content of my php files
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-16 11:36 UTC by Petr Pisl
Modified: 2007-11-20 13:08 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 Petr Pisl 2007-11-16 11:36:22 UTC
Common usecase, is that user have project where the source folder is used directly with the web server. In this case the
behavior of actions Upload Files / Download Files is strange. The IDE should find out, that the source folder is the
same as the document path on the server. The biggest problem is that when user invokes Upload files he lost the content
fo the files. 

It looks like you open read stream and also write stream over the same file object.
Comment 1 Andrew Korostelev 2007-11-16 14:33:08 UTC
should be fixed in 6.0
Comment 2 Andrew Korostelev 2007-11-20 13:08:08 UTC
fixed.
committed 2007.11.20

we now check that server's document path + project's context path = project src root.