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 169818 - When wrong project is chosen in Wizard, the download is unstoppable
Summary: When wrong project is chosen in Wizard, the download is unstoppable
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 169781 (view as bug list)
Depends on:
Blocks: 169782
  Show dependency tree
 
Reported: 2009-08-04 13:26 UTC by martinhavle
Modified: 2009-08-13 15:27 UTC (History)
1 user (show)

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 martinhavle 2009-08-04 13:26:11 UTC
Occurs in build 200908040201 with JDK6u15.

When new php project from remote server is created and wrong initial path is chosen, the IDE freezes until the source
files are downloaded and the download can't be stopped. This becomes quite an issue, when eg. initial path "/" is
chosen, because the IDE is trying to download the entire server and it cant be stooped (the only way is to kill the
process).
Comment 1 Tomas Mysik 2009-08-04 13:56:24 UTC
Ondro, could you please have a look at this issue? I understand it can be issue but currently there's _no_ way to
cancel the download (normally, one can click on the progress to cancel it but in this particular case, the wizard
window is still visible and has focus and waits for the files). Maybe the new last step (after issue #169781 is fixed)
could be used? We could add there a warning or list of files that are going to be downloaded.

Thanks.
Comment 2 Ondrej Langr 2009-08-04 14:38:37 UTC
Yes, last wizard step would be a good way to deal with this. 

Also, the cancel button should probably be used to display a warning: "Do you want to cancel download of remote files?
[yes] [no]"
Comment 3 Tomas Mysik 2009-08-04 15:47:59 UTC
> Also, the cancel button should probably be used to display a warning: "Do you want to cancel download of
> remote files? [yes] [no]"

IMHO not doable, reason explained in my previous comment.
Comment 4 Ondrej Langr 2009-08-05 12:36:26 UTC
I see. Can we display a progress indication in the last wizard step with a way (button?) to cancel the process then? 
Comment 5 Tomas Mysik 2009-08-05 13:26:57 UTC
We agreed that I will add a list of files to be downloaded to the last step - Ondro, could you please advice which UI
form would be the best? Thanks.
Comment 6 Ondrej Langr 2009-08-09 23:11:52 UTC
Please add a new wizard step, saying:

--------------- WIZARD PANE ----------------

Confirmation

The following files will be downloaded after you click finish. The download process can not be cancelled once started!
 -------------------------------------
|  FILE                 FOLDER
|  file1.php         /
|  file2.php         /
|  file3.php         /
|  file1.php         /backup/
|  file2.php         /backup/
|  ...
 -------------------------------------

These files will be automatically synchronized with the server every time you run or debug the project.

----------- END OF WIZARD PANE --------------

Note that this is the UI to be presented when there is AT LEAST ONE file to be downloaded. When there is nothing to be downloaded, it should be handled 
as a corner-case and user should be warned what's wrong .. and should not be allowed to continue. 
Comment 7 Tomas Mysik 2009-08-10 09:34:41 UTC
As agreed with Ondřej, the files will be shown with their full "relative" paths (as in Upload/Download dialogs).
Comment 8 Tomas Mysik 2009-08-10 15:25:02 UTC
*** Issue 169781 has been marked as a duplicate of this issue. ***
Comment 9 Tomas Mysik 2009-08-12 09:59:15 UTC
Fixed, please verify. Thanks.
http://hg.netbeans.org/web-main/rev/ae6aaa1df5c3
Comment 10 Quality Engineering 2009-08-12 18:05:47 UTC
Integrated into 'main-golden', will be available in build *200908121401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ae6aaa1df5c3
User: Tomas Mysik <tmysik@netbeans.org>
Log: #169818: When wrong project is chosen in Wizard, the download is unstoppable
Comment 11 martinhavle 2009-08-13 15:27:38 UTC
Verified, the list of files is shown and when confirmed, the listed files are downloaded.