Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341656

Summary: "Please enter a destination folder"
Product: [Tools] Target Management Reporter: c.sileo
Component: RSEAssignee: David McKnight <dmcknigh>
Status: NEW --- QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: major    
Priority: P3 CC: ddykstal.eclipse, dmcknigh, xuanchen
Version: 3.2.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
test plugin with patched class
none
my rse plugins overview
none
Do you mean this one?
none
plugins for RSE 3.2.x none

Description c.sileo CLA 2011-04-01 13:48:43 EDT
When trying to export files to a remote server using the wizard, I get the error "Please enter a destination folder".

This occurs when the export wizard asks for the remote folder. I then choose one, which is entered correctly, but it's not accepted.

The message "Please enter a destination folder" stands there for no reason and hinders me to upload the selected files.
Comment 1 David McKnight CLA 2011-04-01 14:41:35 EDT
I opened and put in a fix for this related bug earlier on today: bug 341630.  I also fixed another issue today with bug 341616, although I'm not sure whether it's related.

The difference for me is that the Finish button was not disabled regardless of the message.  Would you be able to test this with the latest code for the org.eclipse.rse.importexport plugin?
Comment 2 c.sileo CLA 2011-04-01 17:18:29 EDT
(In reply to comment #1)
> I opened and put in a fix for this related bug earlier on today: bug 341630.  I
> also fixed another issue today with bug 341616, although I'm not sure whether
> it's related.
> 
> The difference for me is that the Finish button was not disabled regardless of
> the message.  Would you be able to test this with the latest code for the
> org.eclipse.rse.importexport plugin?

To my shame I must admit that I don't know how to apply the patch, though I tried using GnuWin32 (on Win XP). In my plugin-folder I at least found the file org.eclipse.rse.importexport_1.2.101.v201008191400.jar. Is it possible to attach a patched version here in the thread so I can try it out?
Comment 3 David McKnight CLA 2011-04-01 17:36:10 EDT
Created attachment 192393 [details]
test plugin with patched class

You could try the attached jar out.
Comment 4 c.sileo CLA 2011-04-01 17:46:11 EDT
(In reply to comment #3)
> Created attachment 192393 [details]
> test plugin with patched class
> 
> You could try the attached jar out.

Thanks, but though the message is gone, the wizard simply disappears after clicking on "finish". The files aren't uploaded.
Comment 5 David McKnight CLA 2011-04-01 17:53:17 EDT
(In reply to comment #4)
> (In reply to comment #3)
> > Created attachment 192393 [details] [details]
> > test plugin with patched class
> > 
> > You could try the attached jar out.
> 
> Thanks, but though the message is gone, the wizard simply disappears after
> clicking on "finish". The files aren't uploaded.

Hmm, I may need for information about your setup: 
What type of connection are you using? (i.e. SSH, FTP, etc.)
What are the permissions of the remote target folder?
Are you able to copy/paste files from your project to the remote target folder?
Are there errors in the .log file after the wizard closes?
Comment 6 c.sileo CLA 2011-04-01 17:57:52 EDT
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > Created attachment 192393 [details] [details] [details]
> > > test plugin with patched class
> > > 
> > > You could try the attached jar out.
> > 
> > Thanks, but though the message is gone, the wizard simply disappears after
> > clicking on "finish". The files aren't uploaded.
> 
> Hmm, I may need for information about your setup: 
> What type of connection are you using? (i.e. SSH, FTP, etc.)
> What are the permissions of the remote target folder?
> Are you able to copy/paste files from your project to the remote target folder?
> Are there errors in the .log file after the wizard closes?

I always use ftp, the permissions are all set to 0777, and yes I'm able to put files via drag and drop on the remote server.

Where's the log file located you mentioned? Are there any other files I could send you to help understand the problem?
Comment 7 David McKnight CLA 2011-04-01 18:03:58 EDT
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > (In reply to comment #3)
> > > > Created attachment 192393 [details] [details] [details] [details]
> > > > test plugin with patched class
> > > > 
> > > > You could try the attached jar out.
> > > 
> > > Thanks, but though the message is gone, the wizard simply disappears after
> > > clicking on "finish". The files aren't uploaded.
> > 
> > Hmm, I may need for information about your setup: 
> > What type of connection are you using? (i.e. SSH, FTP, etc.)
> > What are the permissions of the remote target folder?
> > Are you able to copy/paste files from your project to the remote target folder?
> > Are there errors in the .log file after the wizard closes?
> 
> I always use ftp, the permissions are all set to 0777, and yes I'm able to put
> files via drag and drop on the remote server.
> 
> Where's the log file located you mentioned? Are there any other files I could
> send you to help understand the problem?

Would you be able to try the same scenario out using the SSH Only connection in order to rule out an FTP-specific issue?  The .log file is located relative to your workspace: 
<your workspace>/.metadata/.log

I've got to go now so I'll have to follow up on this next week.
Comment 8 David McKnight CLA 2011-04-12 09:22:35 EDT
Could you see if you can reproduce this problem using the following build?

http://download.eclipse.org/tm/downloads/drops/N20110412-0001/index.php
Comment 9 c.sileo CLA 2011-04-12 09:49:31 EDT
(In reply to comment #8)
> Could you see if you can reproduce this problem using the following build?
> 
> http://download.eclipse.org/tm/downloads/drops/N20110412-0001/index.php

I'm sorry, doesn't work. 

I'm not even sure if my plugins are all loaded correctly. Is there a way to verify that I have the latest version installed?
Comment 10 David McKnight CLA 2011-04-12 09:59:36 EDT
(In reply to comment #9)
> (In reply to comment #8)
> > Could you see if you can reproduce this problem using the following build?
> > 
> > http://download.eclipse.org/tm/downloads/drops/N20110412-0001/index.php
> 
> I'm sorry, doesn't work. 
> 

Have you also tried to reproduce this with an SSH Only connection? If not, it might be a good test to help determine whether this is FTP-specific.

> I'm not even sure if my plugins are all loaded correctly. Is there a way to
> verify that I have the latest version installed?

To verify the plugins you're using, go to the Help menu and select "About Eclipse SDK" (or whichever Eclipse install you have).  From the about dialog, select "Installation Details".  From the Installation Details dialog, go to the "Plugins" tab - there you should be able to verify the plugin versions.
Comment 11 c.sileo CLA 2011-04-12 10:11:02 EDT
Created attachment 193047 [details]
my rse plugins overview
Comment 12 c.sileo CLA 2011-04-12 10:12:18 EDT
I've tried it with SSH, without success. I've attached a screenshot of my plugins tab for you to have a look.
Comment 13 David McKnight CLA 2011-04-12 10:24:44 EDT
(In reply to comment #12)
> I've tried it with SSH, without success. I've attached a screenshot of my
> plugins tab for you to have a look.

From the attachment, it looks like you're using RSE 3.2.x rather than RSE 3.3 (lastest dev).  The fix for bug 341630 has only been applied to the head stream so far.  There is a 3.2.x backport for bug 341616 and that should be available via the following build:

http://www.eclipse.org/downloads/download.php?file=/tm/downloads/drops/M20110404-2215/RSE-runtime-M20110404-2215.zip

Could you pick up that and see if there's any difference?
Comment 14 c.sileo CLA 2011-04-12 10:43:25 EDT
No way, doesn't work either :(
Comment 15 David McKnight CLA 2011-04-12 11:01:21 EDT
(In reply to comment #14)
> No way, doesn't work either :(

I've opened bug 342585 for the backport of the fix for bug 341630.  Since the original HEAD stream fix didn't help you with uploading, I'm not sure this will help you either.  Could you see if you're able to export to another connection - say Local?
Comment 16 c.sileo CLA 2011-04-12 11:04:54 EDT
If by local you mean for example on my desktop, it works. Choosing "file system" in the wizard, that is. Or do you mean an ftp connection to my own local server?
Comment 17 David McKnight CLA 2011-04-12 11:11:57 EDT
(In reply to comment #16)
> If by local you mean for example on my desktop, it works. Choosing "file
> system" in the wizard, that is. Or do you mean an ftp connection to my own
> local server?

I just meant local, as in your desktop.  Since that works for you, I wonder whether the issue is connection-specific.  Are you able to test this with a different server?
Comment 18 c.sileo CLA 2011-04-12 11:22:34 EDT
Of course, I have more than ten connections. I have this problem with all of them. I have two installations (at home and at the office), both show the same bug.
Comment 19 David McKnight CLA 2011-04-13 09:44:42 EDT
Martin, are you able to reproduce this with the latest code?  I've tried with dstore, SSH and FTP but they all work fine for me.
Comment 20 David McKnight CLA 2011-04-15 15:57:05 EDT
Dave D, are you able to reproduce this with the latest code?
Comment 21 c.sileo CLA 2011-04-16 02:47:54 EDT
FYI, I've tested the same issue on mac os x. I've downloaded eclipse for PHP Developers and installed it, that machine never having seen eclipse. But nevertheless I experienced the same bug. So it IS reproducable, it's the third machine I see the bug, so it's not just me.

Are there any log files I can send you in order to debug this annoyance?
Comment 22 David McKnight CLA 2011-04-18 12:09:26 EDT
(In reply to comment #21)
> FYI, I've tested the same issue on mac os x. I've downloaded eclipse for PHP
> Developers and installed it, that machine never having seen eclipse. But
> nevertheless I experienced the same bug. So it IS reproducable, it's the third
> machine I see the bug, so it's not just me.
> 
> Are there any log files I can send you in order to debug this annoyance?

I realize there are at least two problems as revealed by bug 341630 and bug 341616.  However, with the fixes for those two bugs I don't see any issues so I'm wondering how to setup an environment that will reproduce what your seeing despite the recent changes.
Comment 23 David McKnight CLA 2011-04-18 12:12:19 EDT
(In reply to comment #21)
> Are there any log files I can send you in order to debug this annoyance?

This one might help:
<your workspace>/.metadata/.log
Comment 24 c.sileo CLA 2011-04-18 12:25:06 EDT
(In reply to comment #23)
> (In reply to comment #21)
> > Are there any log files I can send you in order to debug this annoyance?
> 
> This one might help:
> <your workspace>/.metadata/.log

Ok, shall I send it to you via Email? 

By the way, I even tested the whole thing on opensuse, where I see the same thing.

Can it be that my settings are wrong?
Comment 25 David McKnight CLA 2011-04-18 12:35:06 EDT
(In reply to comment #24)
> (In reply to comment #23)
> > (In reply to comment #21)
> > > Are there any log files I can send you in order to debug this annoyance?
> > 
> > This one might help:
> > <your workspace>/.metadata/.log
> 
> Ok, shall I send it to you via Email? 
> 

You can attach the .log file (or just paste what appear to be relevant exceptions from it) here.

> 
> Can it be that my settings are wrong?

It may be that your settings don't include the fixes made.  You could try using the following RSE plugin to see if they make any difference:
http://download.eclipse.org/tm/downloads/drops/M20110413-1000/index.php
Comment 26 c.sileo CLA 2011-04-18 12:45:29 EDT
> It may be that your settings don't include the fixes made.  You could try using
> the following RSE plugin to see if they make any difference:
> http://download.eclipse.org/tm/downloads/drops/M20110413-1000/index.php

Installed it, but no changes are made.

By the way, when setting up a new connection, what does "parent profile" mean, is it relevant for the connection?
Comment 27 David McKnight CLA 2011-04-18 12:52:32 EDT
(In reply to comment #26)
> > It may be that your settings don't include the fixes made.  You could try using
> > the following RSE plugin to see if they make any difference:
> > http://download.eclipse.org/tm/downloads/drops/M20110413-1000/index.php
> 
> Installed it, but no changes are made.
> 
> By the way, when setting up a new connection, what does "parent profile" mean,
> is it relevant for the connection?

A parent profile is really just a contained set of connections, filters and other artifacts.  Normally, you'd just use a single profile but there are cases, such as when profiles are shared within a team, where additional profiles make sense.

http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.rse.doc.user/concepts/cprofile.html 

In your scenario, the parent profile is unlikely to be relevant.
Comment 28 David McKnight CLA 2011-04-18 13:05:34 EDT
Another thing that might be useful to attach is a screen capture of the export wizard.  In my attempts to reproduce this, I've been using the default wizard settings - perhaps your settings are different.
Comment 29 c.sileo CLA 2011-04-18 13:17:47 EDT
Created attachment 193502 [details]
Do you mean this one?
Comment 30 David McKnight CLA 2011-04-18 13:19:29 EDT
(In reply to comment #29)
> Created attachment 193502 [details]
> Do you mean this one?

Can you try this without "Review/Synchronize" checked?
Comment 31 c.sileo CLA 2011-04-18 13:20:01 EDT
(In reply to comment #30)
> (In reply to comment #29)
> > Created attachment 193502 [details] [details]
> > Do you mean this one?
> 
> Can you try this without "Review/Synchronize" checked?

Already did this without success.
Comment 32 David McKnight CLA 2011-04-19 14:22:51 EDT
Xuan, are you able to reproduce this using the latest driver?
Comment 33 Xuan Chen CLA 2011-04-19 15:22:31 EDT
It worked for me.
Comment 34 David McKnight CLA 2011-04-28 11:20:37 EDT
I'm not sure what could be wrong here given that neither I nor my colleague can reproduce this.  Perhaps there's something wrong with the Eclipse configuration.  Are you able to install a fresh eclipse (Helios) with the RSE 3.2.x I provided?
Comment 35 c.sileo CLA 2011-04-28 11:24:06 EDT
(In reply to comment #34)
> I'm not sure what could be wrong here given that neither I nor my colleague can
> reproduce this.  Perhaps there's something wrong with the Eclipse
> configuration.  Are you able to install a fresh eclipse (Helios) with the RSE
> 3.2.x I provided?

Well, what could be set wrong by me in order to break functionality? At the moment unfortunately I don't have time to try it out. Maybe you have a clue what kind configuration messes RSE up.
Comment 36 David McKnight CLA 2011-04-28 11:27:27 EDT
(In reply to comment #35)
> (In reply to comment #34)
> > I'm not sure what could be wrong here given that neither I nor my colleague can
> > reproduce this.  Perhaps there's something wrong with the Eclipse
> > configuration.  Are you able to install a fresh eclipse (Helios) with the RSE
> > 3.2.x I provided?
> 
> Well, what could be set wrong by me in order to break functionality? At the
> moment unfortunately I don't have time to try it out. Maybe you have a clue
> what kind configuration messes RSE up.

I'm wondering if maybe you installed the newer RSE 3.2.x over the original and somehow the original plugins are still being loaded so that you're unable to see the recent fixes.
Comment 37 c.sileo CLA 2011-04-28 11:47:55 EDT
I don't think that's the reason, because I installed Eclipse on a fresh OpenSUSE 11.4 with the newest RSE version.
Comment 38 David McKnight CLA 2011-04-28 12:50:10 EDT
Created attachment 194286 [details]
plugins for RSE 3.2.x

This attachment shows the version of the RSE import/export plugin I have installed with my RSE 3.2.x.  Do you have the same version?
Comment 39 c.sileo CLA 2011-04-28 12:56:51 EDT
(In reply to comment #38)
> Created attachment 194286 [details]
> plugins for RSE 3.2.x
> 
> This attachment shows the version of the RSE import/export plugin I have
> installed with my RSE 3.2.x.  Do you have the same version?

Nope, my version is 1.2.101.v201008191400. How ist that possible?
Comment 40 David McKnight CLA 2011-04-28 13:03:13 EDT
(In reply to comment #39)
> (In reply to comment #38)
> > Created attachment 194286 [details] [details]
> > plugins for RSE 3.2.x
> > 
> > This attachment shows the version of the RSE import/export plugin I have
> > installed with my RSE 3.2.x.  Do you have the same version?
> 
> Nope, my version is 1.2.101.v201008191400. How ist that possible?

If you look in your Eclipse plugins directory, is the newer version there?  If it's there, I'm not sure why the old one would still be loaded.  As a test, you might want to try doing an install of Eclipse, without the older RSE, and just extract the latest 3.2.x without grabbing the original.
Comment 41 c.sileo CLA 2011-04-28 13:18:06 EDT
Well, I simply ran "Check for Update" now, and now the latest version is installed. Weird though: the error message is gone, but no upload happens in the wizard after choosing a destination folder. The wizard only gives me the possibility to click on "finish", which simply closes the wizard without uploading anything.
Comment 42 David McKnight CLA 2011-04-28 13:30:18 EDT
(In reply to comment #41)
> Well, I simply ran "Check for Update" now, and now the latest version is
> installed. Weird though: the error message is gone, but no upload happens in
> the wizard after choosing a destination folder. The wizard only gives me the
> possibility to click on "finish", which simply closes the wizard without
> uploading anything.

Interesting, so you're back where you were with https://bugs.eclipse.org/bugs/show_bug.cgi?id=341656#c4.  Is this with or without the "Review/Synchronize" setting?
Comment 43 c.sileo CLA 2011-04-28 13:31:25 EDT
Yes, you're right. It doesn't matter if I have checked the review function.