<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/net, branch v3_0_7</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>skip some test using openssl to cease failure on GitHub Actions for MinGW.</title>
<updated>2022-02-13T08:02:39+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2022-02-13T08:02:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7cd359261e2427dbed1e721e982043a1ebc2cdbc'/>
<id>7cd359261e2427dbed1e721e982043a1ebc2cdbc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix StartTLS stripping vulnerability</title>
<updated>2021-07-07T10:08:18+00:00</updated>
<author>
<name>Shugo Maeda</name>
<email>shugo@ruby-lang.org</email>
</author>
<published>2021-05-11T01:31:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e2ac25d0eb66de99f098d6669cf4f06796aa6256'/>
<id>e2ac25d0eb66de99f098d6669cf4f06796aa6256</id>
<content type='text'>
This fixes CVE-2021-32066.
Reported by Alexandr Savca in &lt;https://hackerone.com/reports/1178562&gt;.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes CVE-2021-32066.
Reported by Alexandr Savca in &lt;https://hackerone.com/reports/1178562&gt;.
</pre>
</div>
</content>
</entry>
<entry>
<title>Ignore IP addresses in PASV responses by default, and add new option use_pasv_ip</title>
<updated>2021-07-07T10:05:36+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-07-07T02:57:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bf4d05173c7cf04d8892e4b64508ecf7902717cd'/>
<id>bf4d05173c7cf04d8892e4b64508ecf7902717cd</id>
<content type='text'>
This fixes CVE-2021-31810.
Reported by Alexandr Savca.

Co-authored-by: Shugo Maeda &lt;shugo@ruby-lang.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes CVE-2021-31810.
Reported by Alexandr Savca.

Co-authored-by: Shugo Maeda &lt;shugo@ruby-lang.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 370949aad60e992c26037241c07489c056554ea3:</title>
<updated>2021-06-10T07:08:40+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2021-06-10T07:08:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=24370a7a38db06a29637052a174c1fdc9c779a28'/>
<id>24370a7a38db06a29637052a174c1fdc9c779a28</id>
<content type='text'>
	test/net/ftp/test_ftp.rb - fix intermittent MinGW failure

	Fixes intermittent error as below:

	[242/838] 5316=test_ftp
	#&lt;Thread:0x0000020aa8733f20 D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:2532 run&gt; terminated with exception (report_on_exception is true):
	D:/a/ruby/ruby/src/tool/lib/minitest/unit.rb:199:in `assert': Expected #&lt;Errno::ECONNRESET: An existing connection was forcibly closed by the remote host.&gt; to be nil. (MiniTest::Assertion)
		from D:/a/ruby/ruby/src/tool/lib/test/unit/core_assertions.rb:504:in `assert'
		from D:/a/ruby/ruby/src/tool/lib/minitest/unit.rb:299:in `assert_nil'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:430:in `ensure in block in test_list_read_timeout_exceeded'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:431:in `block in test_list_read_timeout_exceeded'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:2539:in `block in create_ftp_server'
	D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:426:in `write': An existing connection was forcibly closed by the remote host. (Errno::ECONNRESET)
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:426:in `print'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:426:in `block (2 levels) in test_list_read_timeout_exceeded'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:420:in `each'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:420:in `each_with_index'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:420:in `block in test_list_read_timeout_exceeded'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:2539:in `block in create_ftp_server'
	---
	 test/net/ftp/test_ftp.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	test/net/ftp/test_ftp.rb - fix intermittent MinGW failure

	Fixes intermittent error as below:

	[242/838] 5316=test_ftp
	#&lt;Thread:0x0000020aa8733f20 D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:2532 run&gt; terminated with exception (report_on_exception is true):
	D:/a/ruby/ruby/src/tool/lib/minitest/unit.rb:199:in `assert': Expected #&lt;Errno::ECONNRESET: An existing connection was forcibly closed by the remote host.&gt; to be nil. (MiniTest::Assertion)
		from D:/a/ruby/ruby/src/tool/lib/test/unit/core_assertions.rb:504:in `assert'
		from D:/a/ruby/ruby/src/tool/lib/minitest/unit.rb:299:in `assert_nil'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:430:in `ensure in block in test_list_read_timeout_exceeded'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:431:in `block in test_list_read_timeout_exceeded'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:2539:in `block in create_ftp_server'
	D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:426:in `write': An existing connection was forcibly closed by the remote host. (Errno::ECONNRESET)
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:426:in `print'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:426:in `block (2 levels) in test_list_read_timeout_exceeded'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:420:in `each'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:420:in `each_with_index'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:420:in `block in test_list_read_timeout_exceeded'
		from D:/a/ruby/ruby/src/test/net/ftp/test_ftp.rb:2539:in `block in create_ftp_server'
	---
	 test/net/ftp/test_ftp.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) fe11031b677f301fa011202f3d27e8eb73064264:</title>
<updated>2021-06-10T07:07:42+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2021-06-10T07:07:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=98e5d1f23c8fd492f7b856902132c11752967d3a'/>
<id>98e5d1f23c8fd492f7b856902132c11752967d3a</id>
<content type='text'>
	test/net/ftp/test_ftp.rb: remove unused variable

	---
	 test/net/ftp/test_ftp.rb | 1 -
	 1 file changed, 1 deletion(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	test/net/ftp/test_ftp.rb: remove unused variable

	---
	 test/net/ftp/test_ftp.rb | 1 -
	 1 file changed, 1 deletion(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 990baec41174a0b4cf7e285cf3185b4ab444437e:</title>
<updated>2021-06-10T07:06:01+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2021-06-10T07:06:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6363492817d9dc73da836da852d7cb6a4ace3a8f'/>
<id>6363492817d9dc73da836da852d7cb6a4ace3a8f</id>
<content type='text'>
	[ruby/net-ftp] Close the passive connection data socket if there is
	 an error setting up the transfer

	Previously, the connection leaked in this case.  This uses
	begin/ensure and checking for an error in the ensure block.

	An alternative approach would be to not even perform the
	connection until after the RETR (or other) command has been
	sent.  However, I'm not sure all FTP servers support that.
	The current behavior is:

	* Send (PASV/EPSV)
	* Connect to the host/port returned in 227/229 reply
	* Send (RETR/other command)

	Changing it to connect after the RETR could break things.
	FTP servers might expect that the client has already
	connected before sending the RETR.  The alternative
	approach is more likely to introduce backwards compatibility
	issues, compared to the begin/ensure approach taken here.

	Fixes Ruby Bug 17027

	https://github.com/ruby/net-ftp/commit/6e8535f076
	---
	 lib/net/ftp.rb           | 24 ++++++++++++++----------
	 test/net/ftp/test_ftp.rb | 39 +++++++++++++++++++++++++++++++++++++--
	 2 files changed, 51 insertions(+), 12 deletions(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[ruby/net-ftp] Close the passive connection data socket if there is
	 an error setting up the transfer

	Previously, the connection leaked in this case.  This uses
	begin/ensure and checking for an error in the ensure block.

	An alternative approach would be to not even perform the
	connection until after the RETR (or other) command has been
	sent.  However, I'm not sure all FTP servers support that.
	The current behavior is:

	* Send (PASV/EPSV)
	* Connect to the host/port returned in 227/229 reply
	* Send (RETR/other command)

	Changing it to connect after the RETR could break things.
	FTP servers might expect that the client has already
	connected before sending the RETR.  The alternative
	approach is more likely to introduce backwards compatibility
	issues, compared to the begin/ensure approach taken here.

	Fixes Ruby Bug 17027

	https://github.com/ruby/net-ftp/commit/6e8535f076
	---
	 lib/net/ftp.rb           | 24 ++++++++++++++----------
	 test/net/ftp/test_ftp.rb | 39 +++++++++++++++++++++++++++++++++++++--
	 2 files changed, 51 insertions(+), 12 deletions(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 4ae27d8075b2d138d13cb2b112f0ee50934b3017,2670509ebba5ba31a5bf34cf906943075446e005,8e2ac2140d1cd9c163c1556df58c020dc22ab269:</title>
<updated>2021-04-29T08:20:52+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2021-04-29T08:20:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=58240b5d0b52d9685b773e5b9e45d22ca500392a'/>
<id>58240b5d0b52d9685b773e5b9e45d22ca500392a</id>
<content type='text'>
	[ruby/net-ftp] Reduce resource cosumption of Net::FTP::TIME_PARSER

	Reported by Alexandr Savca as a DoS vulnerability, but Net::FTP is a
	client library and the impact of the issue is low, so I have decided
	to fix it as a normal issue.
	Based on patch by nobu.

	https://github.com/ruby/net-ftp/commit/a93af636f8
	---
	 lib/net/ftp.rb           |  5 +++--
	 test/net/ftp/test_ftp.rb | 11 +++++++++++
	 2 files changed, 14 insertions(+), 2 deletions(-)

	[ruby/net-ftp] Add test cases

	https://github.com/ruby/net-ftp/commit/865232bb2a
	---
	 test/net/ftp/test_ftp.rb | 6 ++++++
	 1 file changed, 6 insertions(+)

	test/net/ftp/test_ftp.rb: reduce the size of a long response

	"9" * 999999999 (about 1 GB) was too large for some CI servers.
	This commit changes the size to 999999 (about 1 MB).

	http://rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20210427T141707Z.fail.html.gz
	http://rubyci.s3.amazonaws.com/raspbian10-aarch64/ruby-master/log/20210427T145408Z.fail.html.gz
	---
	 test/net/ftp/test_ftp.rb | 4 ++--
	 1 file changed, 2 insertions(+), 2 deletions(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[ruby/net-ftp] Reduce resource cosumption of Net::FTP::TIME_PARSER

	Reported by Alexandr Savca as a DoS vulnerability, but Net::FTP is a
	client library and the impact of the issue is low, so I have decided
	to fix it as a normal issue.
	Based on patch by nobu.

	https://github.com/ruby/net-ftp/commit/a93af636f8
	---
	 lib/net/ftp.rb           |  5 +++--
	 test/net/ftp/test_ftp.rb | 11 +++++++++++
	 2 files changed, 14 insertions(+), 2 deletions(-)

	[ruby/net-ftp] Add test cases

	https://github.com/ruby/net-ftp/commit/865232bb2a
	---
	 test/net/ftp/test_ftp.rb | 6 ++++++
	 1 file changed, 6 insertions(+)

	test/net/ftp/test_ftp.rb: reduce the size of a long response

	"9" * 999999999 (about 1 GB) was too large for some CI servers.
	This commit changes the size to 999999 (about 1 MB).

	http://rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20210427T141707Z.fail.html.gz
	http://rubyci.s3.amazonaws.com/raspbian10-aarch64/ruby-master/log/20210427T145408Z.fail.html.gz
	---
	 test/net/ftp/test_ftp.rb | 4 ++--
	 1 file changed, 2 insertions(+), 2 deletions(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>Wait testing/helper threads to terminate</title>
<updated>2020-12-13T04:39:57+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-12-13T04:39:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c7530f0d568e9772bef22a93907f92d8cd872995'/>
<id>c7530f0d568e9772bef22a93907f92d8cd872995</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) &amp;&amp;</title>
<updated>2020-12-04T15:45:54+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2020-12-04T15:40:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b4ec4a41c24105efbb43f9b70ca7f36d22f98294'/>
<id>b4ec4a41c24105efbb43f9b70ca7f36d22f98294</id>
<content type='text'>
* Otherwise those tests, etc cannot run on alternative Ruby implementations.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Otherwise those tests, etc cannot run on alternative Ruby implementations.
</pre>
</div>
</content>
</entry>
<entry>
<title>test/net/smtp - use TCPSocket when UNIXSocket unavailable</title>
<updated>2020-11-17T23:13:10+00:00</updated>
<author>
<name>MSP-Greg</name>
<email>Greg.mpls@gmail.com</email>
</author>
<published>2020-11-17T14:24:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=64926d500782cadf578724c3d1e7f59e7aaf200f'/>
<id>64926d500782cadf578724c3d1e7f59e7aaf200f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
