This project is archived and is in readonly mode.
ActiveResource errors.from_xml Can't handle symboled attribute keys because of humanize call
-
Michael Koziarski
This sounds like a good fix to me, attach a patch with tests and we're good to go.
-
Matthew Moore
Actually I've been looking into this more, and it might be better instead to
stringify_keys!in theattributes=method like ActiveRecord does. Still thinking about it...Do you have any thoughts on what you'd prefer?
-
Michael Koziarski
consistency with AR is probably worth doing, plus it makes it a little less ad-hoc compared to sticking .to_s somewhere. It'll also stop any other issues from popping up later.
-
Pratik
- Title changed from ActiveResource 2.2.2 errors.from_xml Can't handle symboled attribute keys because of humanize call to ActiveResource errors.from_xml Can't handle symboled attribute keys because of humanize call
-
CancelProfileIsBroken
- Tag changed from activeresource, bug to activeresource, bug, bugmash
-
Dan Pickett
patch attached validated +1
I took a swing at a patch for this to stringify the keys. pretty simple.
-
Steve St. Martin
+1 patch applies cleanly to both 2-3-stable and master, appears to address issue and test is sufficient
-
Rizwan Reza
verified
+1 This patch applies to both: 2-3-stable and master cleanly.
-
Nick Quaranto
+1, applies cleanly and passes on both 2-3-stable and master.
-
Dan Croak
+1 verified in 2-3-stable.
Patch applies cleanly. activeresource rake test runs green.
-
Greg Sterndale
+1 verified
patch applied, tests pass in 2-3-stable
-
Dan Croak
Pratik mentioned in IRC that he'd like to see a test for from_xml added to this patch before it is committed. I started to look into it but am on another computer. If someone gets to it first, have at it!
-
Blue Box Stephen
+1, patch applies cleanly and passes.
However, in 2.3-stable it looks like from_xml has been changed significantly in 2.3-stable (original code above is from 2.2.2). For example, humanize is no longer called. As such, are you sure we still need this particular test for from_xml? (See lib/active_resource/validations.rb starting line 224 in 2.3-stable).
-
sr.iniv.t
+1 verified.
The patch applies cleanly on 2-3-stable and tests pass. However, a different patch is needed for master because the activeresource test directory structure has changed in master.
-
Santiago Pastorino
- State changed from new to open
- Importance changed from to
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale
