{"action":"opened","issue":{"url":"https://api.github.com/repos/openshift/openshift-restclient-java/issues/134","repository_url":"https://api.github.com/repos/openshift/openshift-restclient-java","labels_url":"https://api.github.com/repos/openshift/openshift-restclient-java/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/openshift/openshift-restclient-java/issues/134/comments","events_url":"https://api.github.com/repos/openshift/openshift-restclient-java/issues/134/events","html_url":"https://github.com/openshift/openshift-restclient-java/issues/134","id":142656990,"number":134,"title":"Problems with java client making calls to Origin API","user":{"login":"eivantsov","id":5337267,"avatar_url":"https://avatars.githubusercontent.com/u/5337267?v=3","gravatar_id":"","url":"https://api.github.com/users/eivantsov","html_url":"https://github.com/eivantsov","followers_url":"https://api.github.com/users/eivantsov/followers","following_url":"https://api.github.com/users/eivantsov/following{/other_user}","gists_url":"https://api.github.com/users/eivantsov/gists{/gist_id}","starred_url":"https://api.github.com/users/eivantsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eivantsov/subscriptions","organizations_url":"https://api.github.com/users/eivantsov/orgs","repos_url":"https://api.github.com/users/eivantsov/repos","events_url":"https://api.github.com/users/eivantsov/events{/privacy}","received_events_url":"https://api.github.com/users/eivantsov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-22T13:51:32Z","updated_at":"2016-03-22T13:51:32Z","closed_at":null,"body":"We, at Codenvy, have build a plugin for OpenShift that works ok against Enterprise 3.1 version.\r\n\r\nHowever, having grabbed the latest Origin version, we have faced a problem. Any calls rest client makes to Origin API get 409 and '{\"message\":\"the body of the request was in an unknown format - accepted media types include: application/json, application/yaml\"}' as a response.\r\n\r\nAfter some experiments, it turned out that when a project is created using a web console, content type in the header is set as:\r\n\r\n`Content-Type:application/json;charset=UTF-8`\r\n\r\nHowever, when a request is made in Eclipse Che, Content-Type is just application/json. In our code, we can add chaset but it's rest client that makes the final call to Origin API.\r\n\r\nI have seen similar problems, for instance http://stackoverflow.com/questions/36009766/openshift-origin-application-with-jboss-developer-studio\r\n"}}