| Summary: | [FTP] fetch children cannot be canceled | ||
|---|---|---|---|
| Product: | [Tools] Target Management | Reporter: | Michael Scharf <eclipse> |
| Component: | RSE | Assignee: | Javier Montalvo Orús <javier.montalvoorus> |
| Status: | VERIFIED FIXED | QA Contact: | Martin Oberhuber <mober.at+eclipse> |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 1.0.1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | 162577 | ||
| Bug Blocks: | |||
|
Description
Michael Scharf
Fixed in I20061107-0700. Fetching children runs in a separate Job and can be cancelled. I created a directory with 3000 files and used FTP to list the contents of the directory. The query took maybe 5 seconds. I attempted to cancel using the progress monitor but was not able to do so. After several refresh operations the progress monitor began not showing up. I had a Remote System Details view open on the folder and was refreshing using the refresh button on that view. The console log indicates that the listing is happening. I see no relevant messages in the .log file. -----------Enter bugs above this line----------- RSE 1.0 Testing Verification of fixes for I20061109 installation : Eclipse M20060629-1905 platform-3.2.1 RSE install : RSE SDK I20061109 java.runtime : Sun VM 1.5 os.name: : Mac OS X 10.4.8 ------------------------------------------------ systemtype : FTP Only targetos : Mac OS X targetvm : N/A -------------------------------------- I'll move the fetching children call into a Thread instead of a Job, as there's already a Job covering it. Cancelling the parent Job will force a termination of the fetching process. I've moved the fetching action into a Thread, now it should work fine when cancelling the fetching Job action. This solution only covers the FTP list files action, not the population of the RSE tree, that might be quite slow and migh require some rework on the UI. So, the cancel action will only work if performed between opening and closing the data channel. It can be seen in the console log as the interval between the 150 and 226 code messages, something like: LIST 150 Opening data channel for sending file. 226 Transfer OK I've tried this out and I see that if I press cancel before the operation completes, the output is returned as "operation failed...". The message would probably be better as something along the lines of "operation cancelled". Nevertheless the operation does get cancelled. |