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

ADLS Gen2 REST API - File list - maxResults is not recognized, maxresults is. #1532

Closed
MisiekBest opened this issue May 24, 2019 · 7 comments

Comments

Projects
None yet
4 participants
@MisiekBest
Copy link

commented May 24, 2019

Link to article:
https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/list

Problem:
The parameter maxResults in URI Parameters is not recognized by the API.
It throws "Server failed to authenticate the request".

I'm not sure if this is something related to the CanonicalizedResource section and lowercasing or parameter in URI.

Anyway using lowercased maxresults (instead of maxResults) helps.

I can provide a code in PowerShell that proves this issue.

@welcome

This comment has been minimized.

Copy link

commented May 24, 2019

Thank you for creating the issue! One of our team members will get back to you shortly with additional information.

@guntaled

This comment has been minimized.

Copy link

commented May 28, 2019

I noticed the same and can provide C# code that proves the issue.

I also noticed that Databricks mark not being able to retrieve more than 5000 items as "known issue" (and it looks like it is based on error in maxResults, at least it looks like it on the error message they provide):
image
(https://docs.databricks.com/spark/latest/data-sources/azure/azure-datalake-gen2.html)

@ryanmajidi

This comment has been minimized.

Copy link
Collaborator

commented May 29, 2019

@rloutlaw can you please take a loot at this issue?

@guntaled

This comment has been minimized.

Copy link

commented Jun 6, 2019

Today and yesterday, documentation page is missing names at all:
image

@rloutlaw

This comment has been minimized.

Copy link

commented Jun 6, 2019

Thanks for the bug report-this is a known issue we've isolated and we will be pushing a fix shortly.

@guntaled

This comment has been minimized.

Copy link

commented Jun 7, 2019

@MisiekBest, I found that the canonicalized resources have to be lowercased: https://docs.microsoft.com/en-us/rest/api/storageservices/authorize-with-shared-key#constructing-the-canonicalized-resource-string
Doesn't matter in uri itself.

@MisiekBest

This comment has been minimized.

Copy link
Author

commented Jun 7, 2019

Thank you @guntaled . That explains a lot ...
I have not noticed this before :(
In that case, my reported error is not an error, but just a requirement according to the specification.

@ryanmajidi , @rloutlaw
We can close this issue.

To other users:
In the section "Constructing the Canonicalized Resource String" of the documentation Authorize with Shared Key documentation, there is a point: "4. Convert all parameter names to lowercase.".
So if you will get this error, make sure that you are lowercasing all parameters in your canonicalized resource string.

Thanks!

@MisiekBest MisiekBest closed this Jun 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.