Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [Version 1.1.7](https://github.com/dataiku/dss-plugin-sharepoint-online/releases/tag/v1.1.7) - Bugfix release - 2025-07-07

- Custom user agent

## [Version 1.1.6](https://github.com/dataiku/dss-plugin-sharepoint-online/releases/tag/v1.1.6) - Bugfix release - 2025-04-01

- Fix issue with 255+ chars file paths. The new limit is 400 chars, imposed by SharePoint's API.
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "sharepoint-online",
"version": "1.1.6",
"version": "1.1.7",
"meta": {
"label": "SharePoint Online",
"description": "Read and write data from/to your SharePoint Online account",
Expand Down
3 changes: 2 additions & 1 deletion python-lib/dss_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DSSConstants(object):
"sharepoint_oauth": "The access token is missing"
}
PATH = 'path'
PLUGIN_VERSION = "1.1.6"
PLUGIN_VERSION = "1.1.7-beta.2"
SECRET_PARAMETERS_KEYS = ["Authorization", "sharepoint_username", "sharepoint_password", "client_secret", "client_certificate", "passphrase"]
SITE_APP_DETAILS = {
"sharepoint_tenant": "The tenant name is missing",
Expand All @@ -60,3 +60,4 @@ class DSSConstants(object):
"tinyint": "Integer",
"date": "DateTime"
}
USER_AGENT = "Dataiku SharePoint Plugin"
2 changes: 2 additions & 0 deletions python-lib/sharepoint_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,7 @@ def get(self, url, headers=None, params=None):
retries_limit = ItemsLimit(SharePointConstants.MAX_RETRIES)
headers = headers or {}
headers["Accept"] = DSSConstants.APPLICATION_JSON
headers["User-Agent"] = DSSConstants.USER_AGENT
headers["Authorization"] = self.get_authorization_bearer()
response = None
while not is_request_performed(response) and not retries_limit.is_reached():
Expand All @@ -1043,6 +1044,7 @@ def post(self, url, headers=None, json=None, data=None, params=None):
default_headers = {
"Accept": DSSConstants.APPLICATION_JSON_NOMETADATA,
"Content-Type": DSSConstants.APPLICATION_JSON_NOMETADATA,
"User-Agent": DSSConstants.USER_AGENT,
"Authorization": self.get_authorization_bearer()
}
if self.form_digest_value:
Expand Down