Re: [net] FTP client date parsing: new format

2005-04-17 Thread Rory Winston
Steve, Well done and good work with the latest changes that you have applied. I think that we're getting to a 1.4 release stage very quickly. Cheers Rory Jakarta Commons Developers List commons-dev@jakarta.apache.org wrote: Sorry for being a bit brusque before but if you check out the

Re: [net] FTP client date parsing: new format

2005-04-17 Thread Rory Winston
Steve, Well done and good work with the latest changes that you have applied. I think that we're getting to a 1.4 release stage very quickly. Cheers Rory Jakarta Commons Developers List commons-dev@jakarta.apache.org wrote: Sorry for being a bit brusque before but if you check out the

Re: [net] FTP client date parsing: new format

2005-04-17 Thread Steve Cohen
Rory Winston wrote: Steve, Well done and good work with the latest changes that you have applied. I think that we're getting to a 1.4 release stage very quickly. Cheers Rory With my latest work in bugzilla, I believe that we have no currently open bugs. There were two. One was a duplicate of

Re: [net] FTP client date parsing: new format

2005-04-16 Thread Neeme Praks
AFAIK, the new system uses both: regexp for extracting the timestamp from the entry line and then using DateFormat to parse that. Example: -rw-r--r--1 1000 1000 27 Jan 24 11:31 messages.vsp from this line the regexp extracts the timestamp part (Jan 24 11:31) and then DateFormat

Re: [net] FTP client date parsing: new format

2005-04-16 Thread Rory Winston
Doesnt the client first need to extract the date string using a regex in order to parse it using a [Simple]DateFormat? Rory _ Sign up for eircom broadband now and get a free two month trial.* Phone 1850 73 00 73 or visit

Re: [net] FTP client date parsing: new format

2005-04-16 Thread Steve Cohen
I'm sorry, you're right again. IWhen you first wrote me about the numeric date I assumed that the new system just happened to handle it, without bothering to look at the regex that decided what the date parser must parse. Then when I hadn't heard from you for awhile, I thought we were over

Re: [net] FTP client date parsing: new format

2005-04-16 Thread Neeme Praks
ok, now I checked out the recent changes and the fix seems to work, at least in the case of usual files: -rw-r- 1 neeme neeme 346 2005-04-08 11:22 services.vsp is parsed into: typeStr=- hardLinkCount=1 usr=neeme grp=neeme filesize=346 datestr=2005-04-08 11:22

Re: [net] FTP client date parsing: new format

2005-04-16 Thread Steve Cohen
However, I think if you attempt to take your good example and add it to the JUnit tests, (as I just did) you will see that Rory's fix is not sufficient. Yes, it correctly grabs the date string but it doesn't parse it properly because the default UnixFTPEntryParser is still assuming that a

Re: [net] FTP client date parsing: new format

2005-04-16 Thread Steve Cohen
I was incorrect again about the symbolic link thing being separate. It's related to the two-part date. Steve Cohen wrote: However, I think if you attempt to take your good example and add it to the JUnit tests, (as I just did) you will see that Rory's fix is not sufficient. Yes, it correctly

Re: [net] FTP client date parsing: new format

2005-04-16 Thread Steve Cohen
Sorry for being a bit brusque before but if you check out the latest code I think you will find that with Rory's and my changes, your issues are cared for. Neeme Praks wrote: ok, now I checked out the recent changes and the fix seems to work, at least in the case of usual files: -rw-r- 1

Re: [net] FTP client date parsing: new format

2005-04-16 Thread Steve Cohen
Okay, we've solved the immediate issues here but I'm not totally satisfied yet. The problem is that the numeric date format has introduced a new logical possibility. Formerly it was simple and clear - either with the default or recent date formats there were always THREE whitespace-separated

Re: [net] FTP client date parsing: new format

2005-04-16 Thread Steve Cohen
Well, now I AM satisfied. I believe this is about as good as can be done using regular expressions. I tried to do as little date format validation as possible in the regex, but it is inevitable that some must be done. The previous code prior to Neeme Praks' discoveries relied on an

Re: [net] FTP client date parsing: new format

2005-04-15 Thread Neeme Praks
Ok, now I've found out what is the issue: the regexp pattern used by UnixFTPEntryParser assumes too much about the format of the date. In particular, it assumes that there are spaces inside the date or something like that. As I'm not much of a regexp expert, I cannot really pinpoint the

Re: [net] FTP client date parsing: new format

2005-04-15 Thread Rory Winston
Right, the problem with this format is that the date is not composed of three discrete components (from a regex POV), but two. Basically what we will need to do is expand the regex to handle thuis - can you give me details of the FTP server operating system and FTP server software version if

Re: [net] FTP client date parsing: new format

2005-04-15 Thread Rory Winston
Right, the problem with this format is that the date is not composed of three discrete components (from a regex POV), but two. Basically what we will need to do is expand the regex to handle thuis - can you give me details of the FTP server operating system and FTP server software version if

Re: [net] FTP client date parsing: new format

2005-04-15 Thread Rory Winston
Neeme, There is a preliminary (subject to review) fix in SVN for this problem. For an example of how to parse this, look at: http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/parser/FTPConfigEntryParserTest.java?rev=161506view=markup Cheers

Re: [net] FTP client date parsing: new format

2005-04-15 Thread Rory Winston
Neeme, There is a preliminary (subject to review) fix in SVN for this problem. For an example of how to parse this, look at: http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/net/trunk/src/test/org/apache/commons/net/ftp/parser/FTPConfigEntryParserTest.java?rev=161506view=markup Cheers

Re: [net] FTP client date parsing: new format

2005-04-15 Thread Steve Cohen
No, that's not it at all. Remember that the new system does not use Regexes for date parsing, it uses SimpleDateFormats. From Mr. Praks' descriptions, I am assuming he's now running the 1.3 or earlier versions, which do use regexes. This surprises me because I've had several conversations

Re: [net] FTP client date parsing: new format

2005-04-07 Thread Neeme Praks
It just refuses to list any files from the server. Or is there some way to get more information about the possible issue? I didn't see any logging statements in the code... Rgds, Neeme Steve Cohen wrote: I used the following configuration for parsing: configuration defaultDateFormatStr=-MM-dd

Re: [net] FTP client date parsing: new format

2005-04-07 Thread Steve Cohen
OK. There are no logging statements because jakarta-commons-net has no dependencies on any particular logging package. Ant does. I assume this configuration thing is a part of a custom task or revised ftp task of your own design. That would be the place to put in logging. You could even put

Re: [net] FTP client date parsing: new format

2005-04-07 Thread Neeme Praks
Steve Cohen wrote: I assume this configuration thing is a part of a custom task or revised ftp task of your own design. That would be the place to put in logging. You could even put in the stack trace. I already added some debug logging there, but this part seems to be working just fine. It

Re: [net] FTP client date parsing: new format

2005-04-06 Thread Steve Cohen
Neeme Praks wrote: I now implemented support for FTPClientConfig in my local Ant ftp task, but somehow it still fails to parse this directory listing, although it parses the timestamp correctly (I tested that with jUnit). Is it because the parser assumes that the 3rd and 4th parameters (owner and

Re: [net] FTP client date parsing: new format

2005-04-05 Thread Neeme Praks
I now implemented support for FTPClientConfig in my local Ant ftp task, but somehow it still fails to parse this directory listing, although it parses the timestamp correctly (I tested that with jUnit). Is it because the parser assumes that the 3rd and 4th parameters (owner and group) are supposed

Re: [net] FTP client date parsing: new format

2005-03-24 Thread Rory Winston
SOunds good. I do think if we go for 1.4 though, we should probably include some of the smaller issues in BZ that would be easy to fix as well, and maybe get some of those cleaned up. IIRC, most of the smaller bugs include patches or source listings.

Re: [net] FTP client date parsing: new format

2005-03-24 Thread Rory Winston
SOunds good. I do think if we go for 1.4 though, we should probably include some of the smaller issues in BZ that would be easy to fix as well, and maybe get some of those cleaned up. IIRC, most of the smaller bugs include patches or source listings.

Re: [net] FTP client date parsing: new format

2005-03-24 Thread Neeme Praks
This format is from the default FTP server daemon configuration that came with Debian: Connected to stf. 220 stf FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready. Name (stf:neeme): neeme 331 Password required for neeme. Password: 230- Linux stf 2.6.11 #1 SMP Wed Mar 2 14:08:21 CET 2005 i686

Re: [net] FTP client date parsing: new format

2005-03-24 Thread Steve Cohen
Very good news that Debian is going to an all-numeric date format. After mucking around in this mess for a couple of years, I often wondered why standard unix ftp bothered with the abbreviations at all. NT does not and does unix really want to take a back seat to NT in matters such as this?

Re: [net] FTP client date parsing: new format

2005-03-24 Thread Steve Cohen
Rory Winston wrote: SOunds good. I do think if we go for 1.4 though, we should probably include some of the smaller issues in BZ that would be easy to fix as well, and maybe get some of those cleaned up. IIRC, most of the smaller bugs include patches or source listings.

Re: [net] FTP client date parsing: new format

2005-03-24 Thread Steve Cohen
I meant when you did the last release, of course. Steve Cohen wrote: Rory Winston wrote: SOunds good. I do think if we go for 1.4 though, we should probably include some of the smaller issues in BZ that would be easy to fix as well, and maybe get some of those cleaned up. IIRC, most of the

Re: [net] FTP client date parsing: new format

2005-03-24 Thread Rory Winston
The last release was from CVS. The docs were (are? - haven't checked) very CVS-centric. I haven't attmepted to try a release from SVN yet, however I presume it wouldn't be too arduous a task, given the ease of substitutability between CVS/SVN. I fixed the issue with missing JUnit tests - they

Re: [net] FTP client date parsing: new format

2005-03-24 Thread Steve Cohen
4-6 weeks sounds reasonable. Rory Winston wrote: The last release was from CVS. The docs were (are? - haven't checked) very CVS-centric. I haven't attmepted to try a release from SVN yet, however I presume it wouldn't be too arduous a task, given the ease of substitutability between CVS/SVN. I

Re: [net] FTP client date parsing: new format

2005-03-24 Thread Daniel F. Savarese
Rory Winston writes: As regards a timeline, I'm also pretty swamped over the next couple of weeks ( starting a new role, etc), so it will be tight for me until then. If I do get a chance in the next couple of weeks I will look at fixing some of the more s traightforward issues in BZ. It would be

[net] FTP client date parsing: new format

2005-03-23 Thread Neeme Praks
Hi all! Attached is a sample directory listing that breaks the 1.3.0 commons-net FTP client directory parsing, at least when used from Ant task. The basic difference is that the dates are specified as numbers (2005-03-21 14:26), not as month names. I saw on the mailing list that there is now a

Re: [net] FTP client date parsing: new format

2005-03-23 Thread Steve Cohen
Wow! Thanks for showing us this. That's a format I've not seen before. Where did it come from? Is it by any chance a public site? In past experience, all unix ftp servers, which I presume this to be, have used abbreviations for the months. There IS a new system in the latest version of

Re: [net] FTP client date parsing: new format

2005-03-23 Thread Jeffrey D. Brekke
Works for me. go for it. Steve Cohen wrote: Wow! Thanks for showing us this. That's a format I've not seen before. Where did it come from? Is it by any chance a public site? In past experience, all unix ftp servers, which I presume this to be, have used abbreviations for the months. There