Back to bug 1369090

Who When What Removed Added
Vít Ondruch 2016-08-24 12:57:05 UTC Link ID Ruby 11027
Vít Ondruch 2016-08-24 13:05:18 UTC See Also https://bugzilla.redhat.com/show_bug.cgi?id=1280296
Vít Ondruch 2016-08-29 12:12:17 UTC Target Release --- 2.4
Component rh-ruby22 ruby
Version 1.0 rh-ruby22
Assignee vondruch ruby-maint
Product softwarecollections.org Red Hat Software Collections
QA Contact qe-baseos-apps
Alex Glotov 2016-10-05 07:51:01 UTC CC gagriogi
CC aglotov
Pavel Valena 2016-10-05 10:58:19 UTC CC pvalena
Vít Ondruch 2016-10-05 11:13:12 UTC CC vondruch
Iveta Wiedermann 2016-10-26 14:12:46 UTC CC isenfeld
QA Contact qe-baseos-apps isenfeld
Kiersten (Kerri) Anderson 2016-10-26 14:56:37 UTC CC kanderso
Vít Ondruch 2016-11-01 09:14:30 UTC Depends On 1390501
Vít Ondruch 2016-11-01 09:15:00 UTC Summary Ruby 2.2.2 function argument bug fixed in 2.2.3 Ruby 2.2.2 function argument bug fixed in 2.2.3 [rhscl-2.2.z]
Vít Ondruch 2016-11-01 12:00:58 UTC Status NEW MODIFIED
Assignee ruby-maint vondruch
errata-xmlrpc 2016-11-01 12:01:29 UTC Status MODIFIED ON_QA
Vít Ondruch 2016-11-01 13:10:19 UTC Fixed In Version rh-ruby22-ruby-2.2.2-16.el6, rh-ruby22-ruby-2.2.2-16.el7
Vít Ondruch 2016-11-02 13:08:08 UTC Doc Text Cause:
Named argument assignment from Hash is broken in Ruby 2.2.2

Consequence:
Having a method with named arguments and calling it with a Hash, whose keys match up with the names of the method arguments, the values might not be properly assigned to method arguments.

Fix:
A patch, which protects value stack from calling other methods during complex parameter setting process, was applied to fix this issue.

Result:
When method with named arguments is called with Hash whose keys match up with the names of the method arguments, the Hash values are properly assigned to the method arguments.
Doc Type If docs needed, set a value Bug Fix
Lenka Špačková 2016-11-02 14:21:58 UTC CC lkuprova
errata-xmlrpc 2016-11-07 07:08:01 UTC Status ON_QA VERIFIED
Lenka Špačková 2016-11-08 13:18:05 UTC Doc Text Cause:
Named argument assignment from Hash is broken in Ruby 2.2.2

Consequence:
Having a method with named arguments and calling it with a Hash, whose keys match up with the names of the method arguments, the values might not be properly assigned to method arguments.

Fix:
A patch, which protects value stack from calling other methods during complex parameter setting process, was applied to fix this issue.

Result:
When method with named arguments is called with Hash whose keys match up with the names of the method arguments, the Hash values are properly assigned to the method arguments.
Keyword arguments previously did not work correctly if hash keys contained a dynamically created symbol. Consequently, when a method with keyword arguments was used with such a hash, the values could have been incorrectly assigned to the method arguments. A patch has been applied, which protects value stack from calling other methods during the complex parameter setting process. As a result, assigning named arguments from a hash works as expected in the described scenario.
errata-xmlrpc 2016-11-14 16:12:18 UTC Status VERIFIED RELEASE_PENDING
errata-xmlrpc 2016-11-15 07:18:18 UTC Status RELEASE_PENDING CLOSED
Resolution --- ERRATA
Last Closed 2016-11-15 02:18:18 UTC

Back to bug 1369090