Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript SDK: Fixes sharedKey signature creation for ADLS access #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jho1203
Copy link

@jho1203 jho1203 commented Jun 18, 2020

Fixes a number of issues as reported yesterday in #159 with generating signatures when using shared key to access Azure Datalake Gen2 which in turn leads to all requests using the CDM ADLS adapter being denied.

401 Unauthorized Errors are not straightforward to recognize, as there seems to be unhandled promise rejections:
(node:24839) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'defaultShortestTimeWait' of undefined at defaultWaitTimeCallback (/Users/jho/BuildingMinds/BMCL_Adf/CDM/Typescript/bmcl_cdm/libs/CDM-master/objectModel/TypeScript/lib/Storage/NetworkAdapter.js:123:66) at CdmHttpClient.<anonymous> (/Users/jho/BuildingMinds/BMCL_Adf/CDM-Typescript/bmcl_cdm/libs/CDM-master/objectModel/TypeScript/lib/Utilities/Network/CdmHttpClient.js:106:48) at Generator.next (<anonymous>) at fulfilled (/Users/jho/BuildingMinds/BMCL_Adf/CDM-Typescript/bmcl_cdm/libs/CDM-master/objectModel/TypeScript/lib/Utilities/Network/CdmHttpClient.js:7:58) at process._tickCallback (internal/process/next_tick.js:68:7)

When debugging one quickly comes to a point where the builtin retry policy of the SDK reaches
the maximum number of retries (due to all requests being denied as unauthorized due to invalid signature). Future improvement to retry policy should probably exclude requests which result in 401/Unauthorized responses.

@ghost
Copy link

ghost commented Jun 18, 2020

CLA assistant check
All CLA requirements met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant