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 203969 - Improve interaction with FTP servers, avoid over writing previous changes
Summary: Improve interaction with FTP servers, avoid over writing previous changes
Status: RESOLVED DUPLICATE of bug 199151
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 13:21 UTC by tameboy
Modified: 2012-02-07 10:07 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tameboy 2011-10-19 13:21:19 UTC
This is a description of how I think Netbeans could be enhanced:

I edit a file "index.php" from one terminal and upload it to the server.

Later on I am working from another terminal and I need to make some
different changes to index.php but at this second terminal an older
version of index.php is stored locally.

When I try to edit/open index.php, Netbeans warns me that the
remote/FTP version is either newer or different (it checks and compares
file size and modified dates) and do I wish to download it / overwrite the
local version first. I chose to download the version from the FTP server
and edit this one.

At this sage, both me and NB know we are working on the latest version of
index.php so NB doesn't need to ask me if I want to upload the saved
version (and anyway there is a setting in 'options' where I can chose
whether or not I am notified each time NB wants to upload changes).

There is no need to have a function to merge the changes - just a way of reliably checking that you are working on the latest version.

Not an issue that affects me but a potential problem is when two developers are trying to edit the same file simultaneously. Dreamweaver avoids this by having a file 'check in' - 'check out' system - It does this by making the remote files read only when you start editing them and then making the remote files writeable again once you have uploaded and declared that you are finished editing. If another developer using Netbeans tries to edit this file it would discover it is 'read only' and warns the new developer that the file is being edited elsewhere.
Comment 1 Tomas Mysik 2011-10-19 13:33:43 UTC
Check on file-open could be done, I hope.

(In reply to comment #0)
> Not an issue that affects me but a potential problem is when two developers are
> trying to edit the same file simultaneously. Dreamweaver avoids this by having
> a file 'check in' - 'check out' system - It does this by making the remote
> files read only when you start editing them and then making the remote files
> writeable again once you have uploaded and declared that you are finished
> editing. If another developer using Netbeans tries to edit this file it would
> discover it is 'read only' and warns the new developer that the file is being
> edited elsewhere.

This is perhaps something NetBeans does not want to solve since there is a software designed for such task - SCM. Such specialized software will be always better than NetBeans can be.

Thanks for reporting.
Comment 2 Tomas Mysik 2012-02-07 10:07:54 UTC
Basically a duplicate.

*** This bug has been marked as a duplicate of bug 199151 ***