Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #186 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

xml document with a class tag seems to cause infinite loop

Reported by: anonymous Assigned to: nahi
Priority: high Milestone: 1.5.6
Component: soap4r Version: 1.5
Keywords: Cc:

Description

The xml that seems to be triggering the problem in the result returned is <class>Crime Drama</class>

The error from ruby:

/usr/local/lib/ruby/1.8/soap/mapping/registry.rb:73:in inspect': undefined method name' for "Crime drama":String (NoMethodErr? or)

from /usr/local/lib/ruby/1.8/soap/mapping/registry.rb:74:in `inspect' from /usr/local/lib/ruby/1.8/soap/mapping/registry.rb:74:in `inspect' from /usr/local/lib/ruby/1.8/soap/mapping/registry.rb:74:in `inspect' from /usr/local/lib/ruby/1.8/soap/mapping/registry.rb:74:in `inspect' from /usr/local/lib/ruby/1.8/soap/mapping/registry.rb:74:in `inspect' from /usr/local/lib/ruby/1.8/soap/mapping/registry.rb:74:in `inspect' from /usr/local/lib/ruby/1.8/soap/mapping/registry.rb:74:in `inspect' from /usr/local/lib/ruby/1.8/soap/mapping/registry.rb:74:in `inspect'

Change History

11/26/05 13:02:02 changed by nahi

  • priority changed from normal to high.
  • milestone changed from undefined to 1.5.6.

11/26/05 23:29:26 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [1677]) do not overwrite existing method while adding attribute accessor to Mapping::Object. 0% ruby -rxsd/mapping -e 'obj = XSD::Mapping.xml2obj("<foo><class>bar</class></foo>"); p [obj, obj.class, objclass?]' {}class="bar">, SOAP::Mapping::Object, "bar" closes #186.