Skip to content

Commit fae29ee

Browse files
PierreKerschgensvincentkococtavia-squidington-iii
authored
🐛 Source Salesforce: Use Apparent Encoding (#19294)
* fix: prefer response body encoding over header encoding * bump: source-salesforce version * Update salesforce.md * auto-bump connector version Co-authored-by: Vincent Koc <[email protected]> Co-authored-by: Octavia Squidington III <[email protected]>
1 parent 44ac470 commit fae29ee

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@
13081308
- name: Salesforce
13091309
sourceDefinitionId: b117307c-14b6-41aa-9422-947e34922962
13101310
dockerRepository: airbyte/source-salesforce
1311-
dockerImageTag: 1.0.24
1311+
dockerImageTag: 1.0.25
13121312
documentationUrl: https://docs.airbyte.com/integrations/sources/salesforce
13131313
icon: salesforce.svg
13141314
sourceType: api

airbyte-config/init/src/main/resources/seed/source_specs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12208,7 +12208,7 @@
1220812208
supportsNormalization: false
1220912209
supportsDBT: false
1221012210
supported_destination_sync_modes: []
12211-
- dockerImage: "airbyte/source-salesforce:1.0.24"
12211+
- dockerImage: "airbyte/source-salesforce:1.0.25"
1221212212
spec:
1221312213
documentationUrl: "https://docs.airbyte.com/integrations/sources/salesforce"
1221412214
connectionSpecification:

airbyte-integrations/connectors/source-salesforce/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ RUN pip install .
1313

1414
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1515

16-
LABEL io.airbyte.version=1.0.24
16+
LABEL io.airbyte.version=1.0.25
1717
LABEL io.airbyte.name=airbyte/source-salesforce

airbyte-integrations/connectors/source-salesforce/source_salesforce/streams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def download_data(self, url: str, chunk_size: int = 1024) -> tuple[str, str]:
284284
# set filepath for binary data from response
285285
tmp_file = os.path.realpath(os.path.basename(url))
286286
with closing(self._send_http_request("GET", f"{url}/results", stream=True)) as response, open(tmp_file, "wb") as data_file:
287-
response_encoding = response.encoding or response.apparent_encoding or self.encoding
287+
response_encoding = response.apparent_encoding or response.encoding or self.encoding
288288
for chunk in response.iter_content(chunk_size=chunk_size):
289289
data_file.write(self.filter_null_bytes(chunk))
290290
# check the file exists

docs/integrations/sources/salesforce.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Now that you have set up the Salesforce source connector, check out the followin
121121

122122
| Version | Date | Pull Request | Subject |
123123
|:--------| :--------- |:---------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------|
124+
| 1.0.25 | 2022-11-13 | [19294](https://github.com/airbytehq/airbyte/pull/19294) | Use the correct encoding for non UTF-8 objects and data |
124125
| 1.0.24 | 2022-11-01 | [18799](https://github.com/airbytehq/airbyte/pull/18799) | Update list of unsupported Bulk API objects |
125126
| 1.0.23 | 2022-11-01 | [18753](https://github.com/airbytehq/airbyte/pull/18753) | Add error_display_message for ConnectionError |
126127
| 1.0.22 | 2022-10-12 | [17615](https://github.com/airbytehq/airbyte/pull/17615) | Make paging work, if `cursor_field` is not changed inside one page |

0 commit comments

Comments
 (0)