{"id":884,"date":"2011-04-11T23:47:03","date_gmt":"2011-04-11T21:47:03","guid":{"rendered":"http:\/\/musarra.wordpress.com\/?p=884"},"modified":"2020-09-10T23:34:32","modified_gmt":"2020-09-10T21:34:32","slug":"bad-content-type-on-sugarcrm-rest-api-interface","status":"publish","type":"post","link":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/","title":{"rendered":"Bad Content-Type on SugarCRM REST API Interface"},"content":{"rendered":"<p style=\"text-align:justify;\">Today I discovered a really tedious bug on SugarCRM, one of those bugs that take away precious time and you do not expect. The object of the bug are the REST services of SugarCRM. The version on which I have found the problem is the 6.1 Community Edition, but I think also the other editions (Professional and Enterprise) are affected. The versions of the REST Service are: 2 and 3, for more information see document at <a title=\"REST API\" href=\"http:\/\/www.sugarcrm.com\/crm\/support\/documentation\/SugarCommunityEdition\/6.1\/-docs-Developer_Guides-Sugar_Developer_Guide_6.1.0-Chapter%202%20Application%20Framework.html#9000259\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"broken_link\">http:\/\/www.sugarcrm.com\/crm\/support\/documentation\/SugarCommunityEdition\/6.1\/-docs-Developer_Guides-Sugar_Developer_Guide_6.1.0-Chapter%202%20Application%20Framework.html#9000259<\/a>.<\/p>\n<p style=\"text-align:justify;\">Calling a REST service, requiring the response in JSON format, the server responds with an incorrect <em><strong>Content-Type<\/strong>: text\/html instead of application\/json.<\/em><\/p>\n<p style=\"text-align:justify;\">The incorrect value of the Content-Type can cause problems with some frameworks used to consume RESTful JSON services, one of many frameworks is <a title=\"Jersey is the open source, production quality, JAX-RS (JSR 311) Reference Implementation for building RESTful Web services.\" href=\"http:\/\/jersey.java.net\/\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"broken_link\">Jersey<\/a>. See the error returned from Jersey to resulting from the wrong Content-Type.<\/p>\n<pre style=\"text-align:left;\">11-apr-2011 23.07.07 com.sun.jersey.api.client.ClientResponse getEntity\nGRAVE: A message body reader for Java class\nit.lab.shirus.sugarcrm.client.jaxb.EntryValue,\nand Java type class it.lab.shirus.sugarcrm.client.jaxb.EntryValue,\nand <span style=\"color:#ff0000;\"><strong>MIME media type text\/html was not found<\/strong><\/span>\n11-apr-2011 23.07.07 com.sun.jersey.api.client.ClientResponse getEntity\nGRAVE: The registered message body readers compatible with the MIME media type are:\n*\/* -&gt;\ncom.sun.jersey.core.impl.provider.entity.FormProvider\ncom.sun.jersey.core.impl.provider.entity.StringProvider\ncom.sun.jersey.core.impl.provider.entity.ByteArrayProvider\ncom.sun.jersey.core.impl.provider.entity.FileProvider\ncom.sun.jersey.core.impl.provider.entity.InputStreamProvider\ncom.sun.jersey.core.impl.provider.entity.DataSourceProvider\ncom.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General\ncom.sun.jersey.core.impl.provider.entity.ReaderProvider\ncom.sun.jersey.core.impl.provider.entity.DocumentProvider\ncom.sun.jersey.core.impl.provider.entity.SourceProvider$StreamSourceReader\ncom.sun.jersey.core.impl.provider.entity.SourceProvider$SAXSourceReader\ncom.sun.jersey.core.impl.provider.entity.SourceProvider$DOMSourceReader\ncom.sun.jersey.json.impl.provider.entity.JSONJAXBElementProvider$General\ncom.sun.jersey.json.impl.provider.entity.JSONArrayProvider$General\ncom.sun.jersey.json.impl.provider.entity.JSONObjectProvider$General\ncom.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General\ncom.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General\ncom.sun.jersey.core.impl.provider.entity.XMLRootObjectProvider$General\ncom.sun.jersey.core.impl.provider.entity.EntityHolderReader\ncom.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$General\ncom.sun.jersey.json.impl.provider.entity.JSONListElementProvider$General\ncom.sun.jersey.json.impl.provider.entity.JacksonProviderProxy<\/pre>\n<p>For more information see the following documents available on the network:<\/p>\n<ul>\n<li><a href=\"http:\/\/tools.ietf.org\/html\/rfc4627\" target=\"_blank\" rel=\"noopener noreferrer\">The application\/json Media Type for JavaScript Object Notation (JSON)<\/a><\/li>\n<li><a href=\"http:\/\/tools.ietf.org\/html\/rfc2616#page-124\" target=\"_blank\" rel=\"noopener noreferrer\">Hypertext Transfer Protocol -- HTTP\/1.1<\/a><\/li>\n<\/ul>\n<p>Following is an example of calling the login service via Firefox Browser and Firebug as debugger.<\/p>\n<div id=\"attachment_887\" style=\"width: 510px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png\"><img aria-describedby=\"caption-attachment-887\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-887\" title=\"Bad Content-Type SugarCRM REST API Interface\" src=\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png\" alt=\"Bad Content-Type SugarCRM REST API Interface\" width=\"500\" height=\"298\" \/><\/a><p id=\"caption-attachment-887\" class=\"wp-caption-text\">Bad Content-Type SugarCRM REST API Interface<\/p><\/div>\n<div id=\"attachment_888\" style=\"width: 510px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_2.png\"><img aria-describedby=\"caption-attachment-888\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-888\" title=\"View JSON Response\" src=\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_2.png\" alt=\"View JSON Response\" width=\"500\" height=\"204\" \/><\/a><p id=\"caption-attachment-888\" class=\"wp-caption-text\">View JSON Response<\/p><\/div>\n<p style=\"text-align:justify;\">The solution is simple: add one line of code to the class <em><strong>SugarRestJSON<\/strong><\/em> defined in service\/core\/REST\/SugarRestJSON.php. The line of code sets the correct Content-Type takes to respond to the service (see the method body generateResponse ()).<\/p>\n<pre style=\"text-align:justify;\">\/**\n * It will json encode the input object and echo's it\n *\n * @param array $input - assoc array of input values:\n * key = param name, value = param type\n * @return String - echos json encoded string of $input\n *\/\n function generateResponse($input){\n $json = getJSONObj();\n ob_clean();\n <span style=\"color:#ff0000;\"><strong>header('Content-Type: application\/json; charset=UTF-8');<\/strong><\/span>\n if (isset($this-&gt;faultObject)) {\n $this-&gt;generateFaultResponse($this-&gt;faultObject);\n } else {\n echo $json-&gt;encode($input);\n }\n } \/\/ fn<\/pre>\n<p style=\"text-align:justify;\">Following the service responses after applying the Fix.<\/p>\n<div id=\"attachment_890\" style=\"width: 510px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_3.png\"><img aria-describedby=\"caption-attachment-890\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-890\" title=\"Content-Type after applying the fix.\" src=\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_3.png\" alt=\"Content-Type after applying the fix.\" width=\"500\" height=\"231\" \/><\/a><p id=\"caption-attachment-890\" class=\"wp-caption-text\">Content-Type after applying the fix.<\/p><\/div>\n<div id=\"attachment_889\" style=\"width: 337px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_4.png\"><img aria-describedby=\"caption-attachment-889\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-889\" title=\"View JSON Response after applying the fix (JSON View Firefox Plugin).\" src=\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_4.png\" alt=\"View JSON Response after applying the fix (JSON View Firefox Plugin).\" width=\"327\" height=\"594\" \/><\/a><p id=\"caption-attachment-889\" class=\"wp-caption-text\">View JSON Response after applying the fix (JSON View Firefox Plugin).<\/p><\/div>\n<p>See SugarCRM Bug #43368<br \/>\nFor any questions please feel free to leave your comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I discovered a really tedious bug on SugarCRM, one of those bugs that take away precious time and you do not expect. The object of the bug are the REST services of SugarCRM.&#46;&#46;&#46;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,29,39],"tags":[83,100,113,190,200,204,210,327,328,643,374],"class_list":["post-884","post","type-post","status-publish","format-gallery","hentry","category-crm","category-sugarcrm","category-web-services","tag-applicationjson","tag-bug","tag-client-rest-java","tag-java","tag-jaxb","tag-jersey","tag-json","tag-rest","tag-restful","tag-sugarcrm","tag-sugarcrm-rest-api","post_format-post-format-gallery"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bad Content-Type on SugarCRM REST API Interface<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bad Content-Type on SugarCRM REST API Interface\" \/>\n<meta property=\"og:description\" content=\"Today I discovered a really tedious bug on SugarCRM, one of those bugs that take away precious time and you do not expect. The object of the bug are the REST services of SugarCRM.&#046;&#046;&#046;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/\" \/>\n<meta property=\"og:site_name\" content=\"Antonio Musarra&#039;s Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/antoniomusarrablog\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/antoniomusarrablog\" \/>\n<meta property=\"article:published_time\" content=\"2011-04-11T21:47:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-09-10T21:34:32+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png\" \/>\n<meta name=\"author\" content=\"Antonio Musarra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@antonio_musarra\" \/>\n<meta name=\"twitter:site\" content=\"@antonio_musarra\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Antonio Musarra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/\"},\"author\":{\"name\":\"Antonio Musarra\",\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24\"},\"headline\":\"Bad Content-Type on SugarCRM REST API Interface\",\"datePublished\":\"2011-04-11T21:47:03+00:00\",\"dateModified\":\"2020-09-10T21:34:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/\"},\"wordCount\":314,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24\"},\"image\":{\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png\",\"keywords\":[\"application\/json\",\"Bug\",\"Client REST Java\",\"Java\",\"JAXB\",\"Jersey\",\"JSON\",\"REST\",\"RESTful\",\"SugarCRM\",\"SugarCRM REST API\"],\"articleSection\":[\"CRM\",\"SugarCRM\",\"Web Services\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/\",\"url\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/\",\"name\":\"Bad Content-Type on SugarCRM REST API Interface\",\"isPartOf\":{\"@id\":\"https:\/\/www.dontesta.it\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png\",\"datePublished\":\"2011-04-11T21:47:03+00:00\",\"dateModified\":\"2020-09-10T21:34:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#primaryimage\",\"url\":\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png\",\"contentUrl\":\"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.dontesta.it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bad Content-Type on SugarCRM REST API Interface\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dontesta.it\/#website\",\"url\":\"https:\/\/www.dontesta.it\/\",\"name\":\"Antonio Musarra&#039;s Blog\",\"description\":\"The ideal solution for a problem\",\"publisher\":{\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dontesta.it\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24\",\"name\":\"Antonio Musarra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2024\/06\/cropped-foto_profilo.png\",\"contentUrl\":\"https:\/\/www.dontesta.it\/wp-content\/uploads\/2024\/06\/cropped-foto_profilo.png\",\"width\":512,\"height\":512,\"caption\":\"Antonio Musarra\"},\"logo\":{\"@id\":\"https:\/\/www.dontesta.it\/#\/schema\/person\/image\/\"},\"description\":\"I began my journey into the world of computing from an Olivetti M24 PC (http:\/\/it.wikipedia.org\/wiki\/Olivetti_M24) bought by my father for his work. Day after day, quickly taking control until \u2026 Now doing business consulting for projects in the enterprise application development using web-oriented technologies such as J2EE, Web Services, ESB, TIBCO, PHP.\",\"sameAs\":[\"https:\/\/www.dontesta.it\",\"https:\/\/www.facebook.com\/antoniomusarrablog\",\"https:\/\/www.linkedin.com\/in\/amusarra\/\",\"https:\/\/x.com\/antonio_musarra\",\"https:\/\/www.youtube.com\/channel\/UC5D3_EtVPbZYUhrUcEK_THA\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bad Content-Type on SugarCRM REST API Interface","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/","og_locale":"en_US","og_type":"article","og_title":"Bad Content-Type on SugarCRM REST API Interface","og_description":"Today I discovered a really tedious bug on SugarCRM, one of those bugs that take away precious time and you do not expect. The object of the bug are the REST services of SugarCRM.&#46;&#46;&#46;","og_url":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/","og_site_name":"Antonio Musarra&#039;s Blog","article_publisher":"https:\/\/www.facebook.com\/antoniomusarrablog","article_author":"https:\/\/www.facebook.com\/antoniomusarrablog","article_published_time":"2011-04-11T21:47:03+00:00","article_modified_time":"2020-09-10T21:34:32+00:00","og_image":[{"url":"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png","type":"","width":"","height":""}],"author":"Antonio Musarra","twitter_card":"summary_large_image","twitter_creator":"@antonio_musarra","twitter_site":"@antonio_musarra","twitter_misc":{"Written by":"Antonio Musarra","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#article","isPartOf":{"@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/"},"author":{"name":"Antonio Musarra","@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24"},"headline":"Bad Content-Type on SugarCRM REST API Interface","datePublished":"2011-04-11T21:47:03+00:00","dateModified":"2020-09-10T21:34:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/"},"wordCount":314,"commentCount":0,"publisher":{"@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24"},"image":{"@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#primaryimage"},"thumbnailUrl":"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png","keywords":["application\/json","Bug","Client REST Java","Java","JAXB","Jersey","JSON","REST","RESTful","SugarCRM","SugarCRM REST API"],"articleSection":["CRM","SugarCRM","Web Services"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/","url":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/","name":"Bad Content-Type on SugarCRM REST API Interface","isPartOf":{"@id":"https:\/\/www.dontesta.it\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#primaryimage"},"image":{"@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#primaryimage"},"thumbnailUrl":"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png","datePublished":"2011-04-11T21:47:03+00:00","dateModified":"2020-09-10T21:34:32+00:00","breadcrumb":{"@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#primaryimage","url":"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png","contentUrl":"http:\/\/musarra.files.wordpress.com\/2011\/04\/bad-content-type_sugarcrm_rest_api_interface_1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dontesta.it\/en\/2011\/04\/11\/bad-content-type-on-sugarcrm-rest-api-interface\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dontesta.it\/"},{"@type":"ListItem","position":2,"name":"Bad Content-Type on SugarCRM REST API Interface"}]},{"@type":"WebSite","@id":"https:\/\/www.dontesta.it\/#website","url":"https:\/\/www.dontesta.it\/","name":"Antonio Musarra&#039;s Blog","description":"The ideal solution for a problem","publisher":{"@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dontesta.it\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/0c69ed36230e1477875d6171b48b9b24","name":"Antonio Musarra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/image\/","url":"https:\/\/www.dontesta.it\/wp-content\/uploads\/2024\/06\/cropped-foto_profilo.png","contentUrl":"https:\/\/www.dontesta.it\/wp-content\/uploads\/2024\/06\/cropped-foto_profilo.png","width":512,"height":512,"caption":"Antonio Musarra"},"logo":{"@id":"https:\/\/www.dontesta.it\/#\/schema\/person\/image\/"},"description":"I began my journey into the world of computing from an Olivetti M24 PC (http:\/\/it.wikipedia.org\/wiki\/Olivetti_M24) bought by my father for his work. Day after day, quickly taking control until \u2026 Now doing business consulting for projects in the enterprise application development using web-oriented technologies such as J2EE, Web Services, ESB, TIBCO, PHP.","sameAs":["https:\/\/www.dontesta.it","https:\/\/www.facebook.com\/antoniomusarrablog","https:\/\/www.linkedin.com\/in\/amusarra\/","https:\/\/x.com\/antonio_musarra","https:\/\/www.youtube.com\/channel\/UC5D3_EtVPbZYUhrUcEK_THA\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/posts\/884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/comments?post=884"}],"version-history":[{"count":0,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/posts\/884\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/media?parent=884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/categories?post=884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dontesta.it\/en\/wp-json\/wp\/v2\/tags?post=884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}