Crash in framework for user_pref

21 views
Skip to first unread message

Joel Jauregui

unread,
Sep 4, 2012, 6:41:30 PM9/4/12
to calaba...@googlegroups.com
I am trying to use the user_pref method to get a back a preference value, but when I am on the console and attempt to do so there is a crash in the framework.
It's crashing on -[LPUserPrefRoute JSONResponseForMethod:URI:data:] not quite sure what line since I only get the assembly when running my target. I have version 0.9.100
of both the ruby library and calabash iOS framework. Any ideas why this would be happening?

Joel Jauregui

unread,
Sep 4, 2012, 7:59:25 PM9/4/12
to calaba...@googlegroups.com
I inspected my logs and noticed that the request sent to the server is '/userprefs?{"key":"custom_application_id_pref"}', this didn't seem right to me since there is no key for the get parameter. I figured the request should be '/userprefs?key=custom_application_id_pref' and sure enough when I tried that in my browser it gave me back the following json {"results":["Beta Assetforce"],"outcome":"SUCCESS"} which is what I would expect. After digging through the ruby code I noticed that in the user_pref method the call "http({:method => :get, :path => 'userprefs'}, {:key=> key})" should actually be "http({:method => :get, :path => 'userprefs', :raw => true}, {:key => key})" in order to have HTTPClient properly hash the get parameters.

Krukow

unread,
Sep 5, 2012, 6:45:02 AM9/5/12
to calaba...@googlegroups.com
Hi Joel,
I've fixed this bug now in my local repo. I'll release a version ASAP.

- Karl

Krukow

unread,
Sep 5, 2012, 8:27:33 AM9/5/12
to calaba...@googlegroups.com
Please update to 0.9.101 as by:


Thanks for the bug report
Reply all
Reply to author
Forward
0 new messages