Closed (won't fix)
Project:
Salesforce Suite
Version:
7.x-3.x-dev
Component:
salesforce.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 May 2014 at 10:58 UTC
Updated:
21 Feb 2026 at 19:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
juhaniemi commentedComment #2
juhaniemi commentedComment #3
juhaniemi commentedComment #4
dbcollies commentedThe patch looks good to me, with one very minor exception: it breaks Drupal coding standards (and throws a warning when applying it) because it adds a line with only blank spaces. But, functionally it works well, as far as I can see.
I tested only using REST, not SOAP.
Comment #5
dbcollies commentedSorry - entered my comment on the wrong issue. :(
Comment #6
KeithC commentedI've also experienced this issue with getting file data when trying to use the Salesforce module within my own custom module.
However, I've made a patch that I feel is a bit tidier.
My apologies if I've done anything incorrectly. This is my first patch!
Thanks
Comment #7
KeithC commentedWe've just noticed that both of the original patches cause a warning to be thrown when
$this->response->headers['content-type']is not set, for example when doing$data = $this->apiCall("sobjects/{$name}/{$key}/{$value}", $params, 'PATCH');.I've uploaded a new patch which checks it's set before trying to use it.
Thanks
Comment #8
aaronbaumanChecking response headers is probably a good idea anyway.
I think an switch statement is probably a cleaner implementation.
Is 'application/octet-stream' the content-type in the response header?
Something else we should look out for?
e.g.
Comment #9
aaronbaumanNW per previous comment.
Comment #10
aaronbauman7.x is no longer supported