-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
only :order! keys are converted - error with Gyoku #461
Comments
If I comment out line 27 it works as expected, and all tests pass. Another take is if I pass the key_converter to the qualified message constructor and use the translated key for the result hash when @used_namespaces[newpath] is nil. I ran the specs and they all pass, not sure how or in what situation @used_namespaces variable is used. |
I think my problem is related, though I'm on 1.9.3. I have created my client with If my message hash looks like: { :FooBARBaz => "quux",
:Pagination => { :Page => 1, :PageSize => 20 }
:order! => [ :FooBARBaz, :Pagination ]
} Then I get
but if I pass in { :FooBARBaz => "quux",
:Pagination => { :Page => 1, :PageSize => 20 }
:order! => [ 'fooBarBaz', 'pagination']
} I get the same error. I'll try both workarounds and and let you know if any are successful. |
Commenting out line 27 succeeded, but I'm not (yet) comfortable deploying with it until I better understand what it does. |
Totally, commenting code seems sketchy. |
yeah, passing the key converter to the qualified message constructor didn't work. Possibly because I'm not actually doing any conversion? I'm not sure. |
Yikes! I ran |
A little experimentation shows that guzart/savon@adfdc04 fails because passing in Gyoku.xml_tag(:FooBARBaz, :key_converter => :none) , which returns |
emschwar/savon@79731a6 works for me, but is definitely sub-optimal. I'd love some suggestions on how to improve it, and where to put some tests (I don't see a good spot anywhere, to be honest). |
hey guys, i can see various problems in that area. the code in that message class is ridiculous. could you please check whether 4742208 fixes your problems? |
it's working for me. Thanks |
Thanks, @rubiii, I'll check it out this afternoon. |
Unfortunately am stuck using 1.8.7
Settings:
Savon is sending Gyoku a hash where the
:order!
keys are converted, but the message keys are not. Which results in Gyoku raising the following errorSeems like the breaking point is in
qualified_message.rb:27
, where@used_namespaces[newpath] => nil
and it only adds the namespaces (converted keys) to the
:order!
arrayThanks
The text was updated successfully, but these errors were encountered: