azure-sdk-for-cpp icon indicating copy to clipboard operation
azure-sdk-for-cpp copied to clipboard

[C++][Blobs] Why comp=rename is not a valid query parameter?

Open felipecrv opened this issue 1 year ago • 6 comments

Query/Question

Why Blobs::BlobServiceClient::RenameBlobContainer() returns a response saying comp=rename is an invalid query parameter?

Output from the debugger:

(lldb) p exception
(const Azure::Storage::StorageException) $2 = {
  Azure::Core::RequestFailedException = {
    std::runtime_error = {
      __imp_ = (__imp_ = "400 Value for one of the query parameters specified in the request URI is invalid.\nValue for one of the query parameters specified in the request URI is invalid.\nRequestId:fd5eafa6-901e-0029-5a60-4
6de8a000000\nTime:2024-01-13T20:39:54.4707766Z\nRequest ID: fd5eafa6-901e-0029-5a60-46de8a000000")
    }
    RawResponse = Azure::Core::Http::RawResponse @ 0x0000600002916530 {
      __value_ = 0x0000600002916530
    }
    StatusCode = BadRequest
    ReasonPhrase = "Value for one of the query parameters specified in the request URI is invalid."
    ClientRequestId = "8b565146-823c-4c3b-b02b-b0285f138489"
    RequestId = "fd5eafa6-901e-0029-5a60-46de8a000000"
    ErrorCode = "InvalidQueryParameterValue"
    Message = "Value for one of the query parameters specified in the request URI is invalid.\nRequestId:fd5eafa6-901e-0029-5a60-46de8a000000\nTime:2024-01-13T20:39:54.4707766Z"
  }
  AdditionalInformation = size=2 {
    [0] = (first = "QueryParameterName", second = "comp")
    [1] = (first = "QueryParameterValue", second = "rename")
  }
}

Why is this not a Bug or a feature Request?

I suspect I'm missing some configuration on my account that would fix this.

Setup (please complete the following information if applicable):

  • OS: macOS
  • IDE: N/A
  • Version of the Library used: something around 12.5.0

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [x] Query Added
  • [x] Setup information Added

felipecrv avatar Jan 13 '24 21:01 felipecrv

Hi @felipecrv , the log is rolled over. Can you make another request and share the request ID?

Jinming-Hu avatar Jan 16 '24 15:01 Jinming-Hu

Sure:

(lldb) p exception
(const Azure::Storage::StorageException) $0 = {
  Azure::Core::RequestFailedException = {
    std::runtime_error = {
      __imp_ = (__imp_ = "400 Value for one of the query parameters specified in the request URI is invalid.\nValue for one of the query parameters specified in the request URI is invalid.\nRequestId:01ccb5bb-601e-0012-639e-489b2e000000\nTime:2024-01-16T17:07:21.0523901Z\nRequest ID: 01ccb5bb-601e-0012-639e-489b2e000000")
    }
    RawResponse = Azure::Core::Http::RawResponse @ 0x00006000029141c0 {
      __value_ = 0x00006000029141c0
    }
    StatusCode = BadRequest
    ReasonPhrase = "Value for one of the query parameters specified in the request URI is invalid."
    ClientRequestId = "1ccca34f-f938-45cb-bc07-22beae03ce1d"
    RequestId = "01ccb5bb-601e-0012-639e-489b2e000000"
    ErrorCode = "InvalidQueryParameterValue"
    Message = "Value for one of the query parameters specified in the request URI is invalid.\nRequestId:01ccb5bb-601e-0012-639e-489b2e000000\nTime:2024-01-16T17:07:21.0523901Z"
  }
  AdditionalInformation = size=2 {
    [0] = (first = "QueryParameterName", second = "comp")
    [1] = (first = "QueryParameterValue", second = "rename")
  }
}

felipecrv avatar Jan 16 '24 17:01 felipecrv

@felipecrv Thanks for sharing. We're investigating into this issue.

Jinming-Hu avatar Jan 18 '24 04:01 Jinming-Hu

This feature is not available everywhere. It's a storage service issue.

Jinming-Hu avatar Mar 25 '24 01:03 Jinming-Hu

This feature is not available everywhere. It's a storage service issue.

Is this documented somewhere? How do I know I have it or not without trying to make the call?

felipecrv avatar Mar 25 '24 14:03 felipecrv

@Jinming-Hu Is this a service issue that should be assigned to the service team?

RickWinter avatar May 17 '24 00:05 RickWinter