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

Miss one storage error code "AuthenticationError" #4980

Closed
sima-zhu opened this issue Aug 14, 2019 · 4 comments
Closed

Miss one storage error code "AuthenticationError" #4980

sima-zhu opened this issue Aug 14, 2019 · 4 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)

Comments

@sima-zhu
Copy link
Contributor

sima-zhu commented Aug 14, 2019

Storage queue returns StorageErrorException of "AuthenticationError" when we passed in the metadata with capital letter.

There is no such constant error code in swagger in java.

@sima-zhu sima-zhu added Storage Storage Service (Queues, Blobs, Files) Client This issue points to a problem in the data-plane of the library. labels Aug 14, 2019
@sima-zhu
Copy link
Contributor Author

@rickle-msft @tg-msft

@tg-msft
Copy link
Member

tg-msft commented Aug 16, 2019

You'll want to add this to https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/storage/azure-storage-queue/swagger/README.md with a transform like:

directive:
- from: swagger-document
  where: $.definitions.ErrorCode
  transform: >
    if (!$.enum.includes("AuthenticationError")) {
        $.enum.push("AuthenticationError");
    }

And then regenerate following the instructions at the top of that file.

@kurtzeborn
Copy link
Member

@alzimmermsft, you were suspicious this is not the error return they actually use here. Please take a look.

@alzimmermsft
Copy link
Member

Closing as this isn't an expected response code from the service based on their documentation.

https://docs.microsoft.com/en-us/rest/api/storageservices/common-rest-api-error-codes
https://docs.microsoft.com/en-us/rest/api/storageservices/queue-service-error-codes

@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

4 participants