Bug 169610 - [ftp] RSE/FTP does not work with Microsoft FTP Service on NT Server
Summary: [ftp] RSE/FTP does not work with Microsoft FTP Service on NT Server
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 1.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0   Edit
Assignee: Javier Montalvo Orús CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on: 176216
Blocks:
  Show dependency tree
 
Reported: 2007-01-04 18:37 EST by birt.bugs CLA
Modified: 2012-05-23 17:52 EDT (History)
0 users

See Also:


Attachments
patch (881 bytes, patch)
2007-01-31 13:58 EST, Javier Montalvo Orús CLA
mober.at+eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description birt.bugs CLA 2007-01-04 18:37:55 EST
Build ID: M20060629-1905

Steps To Reproduce:
1.Install RSE FTP Services 1.0.1.v20061215
2.Create a connection to Win NT server
3.Open MyHome or root
No files below the home directory under root 


More information:
See: http://www.eclipse.org/newsportal/article.php?id=68&group=eclipse.dsdp.tm#68

This bug opened at Martin Oberhuber's Request. 

Appears to work correctly with RSE core and FTP 1.0.0
Comment 1 Javier Montalvo Orús CLA 2007-01-08 09:15:35 EST
It works fine for me with RSE 1.0.1.v20061129 when connecting to a Win NT FTP server. Can you provide the output of your logging console, so I can take a look at it ? 

My FTP log, showing a successful connection, is:

220 Microsoft FTP Service (Version 5.0).

USER JavierM
331 Password required for JavierM.

PASS ******
230 User JavierM logged in.

SYST
215 Windows_NT version 5.0

PWD
257 "/" is current directory.

Comment 2 birt.bugs CLA 2007-01-16 13:54:53 EST
Here is my console log: 
-------------------
220 Microsoft FTP Service

USER jmband
331 Password required for jmband.

PASS ******
230 User jmband logged in.

SYST
215 Windows_NT

PWD
257 "/jmband" is current directory.

NOOP
200 NOOP command successful.

CWD \jmband
250 CWD command successful.

PORT 192,168,231,52,4,141
200 PORT command successful.

LIST
150 Opening ASCII mode data connection for /bin/ls.

226 Transfer complete.

NOOP
200 NOOP command successful.

CWD \jmband
250 CWD command successful.

PORT 192,168,231,52,4,143
200 PORT command successful.

LIST
150 Opening ASCII mode data connection for /bin/ls.

226 Transfer complete.
-------------------

Note that the problem is not with establishing a connection, it's with retreiving the contents of the root directory. 
Comment 3 Javier Montalvo Orús CLA 2007-01-16 14:18:29 EST
This issue should be solved after having fixed bug 168120 ([ftp] root filter resolves to home dir). 
This bug was fixed on the 20/12/2006, so you should try with a later version of the FTP plugin from the DSDP-TM download site (http://download.eclipse.org/dsdp/tm/downloads/index.php)

Let me know if doesn't fix your problem.
Comment 4 Martin Oberhuber CLA 2007-01-17 10:34:41 EST
FYI, RSE 2.0M4 would be a proper version to test.
In spite of the 2.0 number, it does not change any APIs compared to 1.0.1 so you should be good to use it.
Comment 5 birt.bugs CLA 2007-01-17 13:59:28 EST
2.0M4 does not appear to help. 

According to the Product Configuration I have the following features enabled: 
  Remote System Explorer Core 1.0.2.V20061220
  RSE FTP Services 1.0.2.V20061220 
  RSE Local Services 1.0.2.B20061220 

I couldn't find an update site for the 2.0 stream, so I downloaded the zips and unzipped them to C:\Program Files. This caused the new features to appear in the Product Configuration, but disabled (which suprised me because I thought Eclipse always took the highest numbered feature) Anyway, Replacing the features with the new versions (as noted above) appears to enable them. I should note that I did this one feature at a time, first FTP then CORE then Local Services, testing in between. 

Everything I tried produces the same behavior. I also tried starting eclipse with -clean, and creating a new connection. 
Comment 6 Martin Oberhuber CLA 2007-01-18 03:48:10 EST
Verified that 2.0M4 does indeed contain the fix for bug bug 168120.
Your turn Javier.
Comment 7 Javier Montalvo Orús CLA 2007-01-19 07:16:09 EST
(In reply to comment #2)
> Note that the problem is not with establishing a connection, it's with
> retreiving the contents of the root directory. 

So it means that when you expand "Root", instead of "/" and its subfolders you get the contents of \jmband ? 
Comment 8 birt.bugs CLA 2007-01-19 11:26:13 EST
When the view starts it looks like this: 
test3 (the connection)
  Files
    My Home
     pending...
    Root
     pending...

Eventually, the node under My Home changes to 
    Empty list
and the node under Root changes to 
    / 

If I click the + next to / I get pending... for a moment, then / without a + 

When I ran it with 1.0.0 I found what appears to be the actual Root of the server's E: drive under Root, and the my web application's file system under My Home. 
Comment 9 Javier Montalvo Orús CLA 2007-01-19 11:45:43 EST
(In reply to comment #8)
> When the view starts it looks like this: 
> test3 (the connection)
>   Files
>     My Home
>      pending...
>     Root
>      pending...
> 
> Eventually, the node under My Home changes to 
>     Empty list
> and the node under Root changes to 
>     / 
> 
> If I click the + next to / I get pending... for a moment, then / without a + 
> 
> When I ran it with 1.0.0 I found what appears to be the actual Root of the
> server's E: drive under Root, and the my web application's file system under My
> Home. 
> 

Can you check if Eclipse reports any issue in the View 
"PDE Runtime" -> "Error Log"

Also, it could be interesting checking if you can connect to the FTP server through another FTP Client, just to discard any connectivity issue.

Comment 10 birt.bugs CLA 2007-01-19 12:13:08 EST
org.eclipse.osgi reports 

   Error while stopping "org.eclipse.rse.ui.1.0.1.v20061215" 

on shutdown. No errors on RSE initialization or when I click the +. 

Connection via Windows FTP command works correctly. 
Comment 11 Javier Montalvo Orús CLA 2007-01-31 13:58:27 EST
Created attachment 57928 [details]
patch

I found the possible cause of the issue. 
It could be a problem using \ instead of / as the path separator for Windows.

The patch is attached, could you verify if it solves your problem ?
Comment 12 birt.bugs CLA 2007-02-14 11:21:53 EST
Sorry for the  delay, just getting back to this. I assume I'll have to download the source, apply the patch and build the plugin. I don't have any experience with this so it might take a while longer yet. 

Or is this in a daily build by now, that I can just download the binary? 
Comment 13 Javier Montalvo Orús CLA 2007-02-14 11:32:38 EST
(In reply to comment #12)
> Or is this in a daily build by now, that I can just download the binary? 

Any build after Jan 2007 should have the fix. 
Today's integration build should work fine.
(http://download.eclipse.org/dsdp/tm/downloads/drops/I20070214-0800/index.php)

Comment 14 Javier Montalvo Orús CLA 2007-02-20 11:32:11 EST
This bug was reported because the failing Windows FTP server listed the files in a UNIX format and the jakarta parser expected a Windows format, so no files were listed.

The solution could be allow overriding the FTP client parser to be used, possibly through the FTP Settings.
Comment 15 Javier Montalvo Orús CLA 2007-05-10 11:17:51 EDT
Now it's possible to override the parser used and even add new ones through an extension point.
In the original case of this bug, a WinNT server used a UNIX listing, so by default the WinNT parsing was used listing no files or folders (which can be right in an empty FTP server)
Now, the user can select a specific parser on the Properties -> FTP Settings -> parser (in the previous case UNIX would work fine)
Comment 16 Martin Oberhuber CLA 2008-08-13 13:18:37 EDT
[target cleanup] 2.0 M7 was the original target milestone for this bug
Comment 17 Martin Oberhuber CLA 2012-05-23 17:52:58 EDT
Comment on attachment 57928 [details]
patch

iplog- since Javier became committer in 2006 already:
http://dev.eclipse.org/mhonarc/lists/dsdp-tm-dev/msg00375.html