[#69892] [Ruby trunk - Feature #11339] [Open] [PATCH] io.c: avoid kwarg parsing in C API — normalperson@...
Issue #11339 has been reported by Eric Wong.
8 messages
2015/07/07
[#69983] Re: [Ruby trunk - Feature #11339] [Open] [PATCH] io.c: avoid kwarg parsing in C API
— Eric Wong <normalperson@...>
2015/07/15
normalperson@yhbt.net wrote:
[#69990] Re: [Ruby trunk - Feature #11339] [Open] [PATCH] io.c: avoid kwarg parsing in C API
— SASADA Koichi <ko1@...>
2015/07/16
On 2015/07/16 4:41, Eric Wong wrote:
[#69995] Re: [Ruby trunk - Feature #11339] [Open] [PATCH] io.c: avoid kwarg parsing in C API
— Eric Wong <normalperson@...>
2015/07/16
SASADA Koichi <ko1@atdot.net> wrote:
[#69984] $SAFE inside an Array — Bertram Scharpf <lists@...>
Hi,
4 messages
2015/07/15
[#70001] [Ruby trunk - Bug #11336] [Open] TestProcess#test_exec_fd_3_redirect failed on Solaris 10 — ngotogenome@...
Issue #11336 has been updated by Naohisa Goto.
4 messages
2015/07/16
[#70005] Re: [Ruby trunk - Bug #11336] [Open] TestProcess#test_exec_fd_3_redirect failed on Solaris 10
— Eric Wong <normalperson@...>
2015/07/16
Sorry, but I think rb_divert_reserved_fd seems a racy fix. I think the
[#70011] [Ruby trunk - Bug #11362] [Open] [PATCH] ensure Process.kill(:STOP, $$) is resumable — normalperson@...
Issue #11362 has been reported by Eric Wong.
3 messages
2015/07/17
[#70016] [Ruby trunk - Bug #11364] [Open] Use smaller buffer for sendmsg — merch-redmine@...
Issue #11364 has been reported by Jeremy Evans.
8 messages
2015/07/17
[#70052] Re: [Ruby trunk - Bug #11364] [Open] Use smaller buffer for sendmsg
— Eric Wong <normalperson@...>
2015/07/20
merch-redmine@jeremyevans.net wrote:
[#70055] Re: [Ruby trunk - Bug #11364] [Open] Use smaller buffer for sendmsg
— Jeremy Evans <code@...>
2015/07/20
On 07/20 10:46, Eric Wong wrote:
[#70056] Re: [Ruby trunk - Bug #11364] [Open] Use smaller buffer for sendmsg
— Eric Wong <normalperson@...>
2015/07/21
Jeremy Evans <code@jeremyevans.net> wrote:
[#70103] [Ruby trunk - Feature #11375] Decreased Object Allocation in Pathname.rb — richard.schneeman@...
Issue #11375 has been updated by Richard Schneeman.
3 messages
2015/07/23
[#70156] [Ruby trunk - Bug #11396] Bad performance in ruby >= 2.2 for Hash with many symbol keys — dunric29a@...
Issue #11396 has been updated by David Unric.
3 messages
2015/07/28
[ruby-core:70191] [Ruby trunk - Bug #11407] [Feedback] Net::FTP nlst method return wrong data and don't raise Error when path is wrong
From:
shugo@...
Date:
2015-07-30 14:33:09 UTC
List:
ruby-core #70191
Issue #11407 has been updated by Shugo Maeda.
Status changed from Open to Feedback
Damian Giebas wrote:
> I found bug in nlst function. When we have situatiuon on ftp like this
>
> /
> my_folder/
> some_file.txt
> some_another_file.txt
>
> and we go to "my_folder"
>
> ftp_handler.chdir("my_folder")
> and use nlst from this folder on file "some_another_file.txt"
>
> ftp_handler.nlst("../some_another_file.txt") it return
>
> ['../some_another_file.txt/some_another_file.txt']
>
> I think this is bug. In this case function should return ['../some_another_file.txt']
I couldn't reproduce the problem....
```ruby
require "net/ftp"
ftp = Net::FTP.new("ftp.ruby-lang.org")
ftp.passive = true
ftp.login
ftp.chdir("pub/ruby/2.2")
p ftp.nlst("..")
p ftp.nlst("../ruby-2.2.2.zip") #=> ["../ruby-2.2.2.zip"]
```
Does the nlist command of /usr/bin/ftp works well with that server?
----------------------------------------
Bug #11407: Net::FTP nlst method return wrong data and don't raise Error when path is wrong
https://bugs.ruby-lang.org/issues/11407#change-53618
* Author: Damian Giebas
* Status: Feedback
* Priority: Normal
* Assignee: Shugo Maeda
* ruby -v: 2.3.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
I found bug in nlst function. When we have situatiuon on ftp like this
/
my_folder/
some_file.txt
some_another_file.txt
and we go to "my_folder"
ftp_handler.chdir("my_folder")
and use nlst from this folder on file "some_another_file.txt"
ftp_handler.nlst("../some_another_file.txt") it return
['../some_another_file.txt/some_another_file.txt']
I think this is bug. In this case function should return ['../some_another_file.txt']
It still "working" when my path is worong. When I'm still in "my_folder" and I use nlst with weird path
ftp_handler.nlst("../../../../../../some_another_file.txt")
it return ["../../../../../../some_another_file.txt/some_another_file.txt"]. I think it should raise FTPPermError with code 550. This path does not exist.
I found this bug in ruby version 1.9.3 and it still exist in ruby 2.3.0dev.
Can someone confirm me this is bug?
Best regards.
---Files--------------------------------
net_ftp_bug.png (141 KB)
--
https://bugs.ruby-lang.org/