I was only able to connect using REST with JSON encoding after capitalizing the input and response types in the "_sugarondrupal_rest_json_request" function. Patch attached.

Reference: http://www.ibm.com/developerworks/library/x-sugarcrmrest/index.html#icom...

CommentFileSizeAuthor
#4 sugarondrupal-fix-json.patch5.18 KBilo
json.patch1.51 KBngstigator
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ilo’s picture

Status: Needs review » Needs work

Thanks chris_five, I'll take a look, but current non-capitalized strings are working for me, so I guess it requires a more in-depth research on SugarCRM versions. What is yours?

ilo’s picture

Actually, after some tests in a SugarCRM Enterprise 6.1 setup I can confirm this issue (however it is working non-capitalized in a 6.0.3-beta). I've verified that being capitalized also works on 6.0 and 5.5, so I'll address this issue in the next commit.

ilo’s picture

Title: Cannot connect with REST/JSON » Capitalize encoding string type and make JSON the default encoding method
Status: Needs work » Fixed

I've changed JSON to be the default encoding, and also capitalized it after verifying that it works capitalized where I was using non-capitalized strings. Thanks for the tip, chris_five, I've committed as http://drupal.org/cvs?commit=467440.

ilo’s picture

I forgot the patch.

ngstigator’s picture

Great to hear that you're back on the case! I was using SugarCRM 5.2 and 5.5.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.