Skip to content

Wrong json model on Data Lake Storage "Path" #16401

Closed

Description

Bug Report

  • import path of package in question: github.com/Azure/azure-sdk-for-go/services/storage/datalake/2019-10-31/storagedatalake
  • SDK version: 58.3.0
  • output of go version: go version go1.17 linux/amd64
  • What happened?
    While trying to list paths got json parse error
Error = 'json: cannot unmarshal string into Go struct field Path.paths.contentLength of type int64' JSON = '{"paths":[{"contentLength":"0","etag":"0x8D9B8C1E77A2CCF","group":"$superuser","isDirectory":"true","lastModified":"Mon, 06 Dec 2021 14:08:40 GMT","name":"vms/7e5ffad1-c24d-11e8-911f-c4b301c47c6b","owner":"$superuser","permissions":"rwxr-x---"},{"contentLength":"0","etag":"0x8D9B8C4BB9B08F6","group":"$superuser","isDirectory":"true","lastModified":"Mon, 06 Dec 2021 14:28:55 GMT","name":"vms/dd981f75-c6ed-11e8-bb55-c4b301c47c6b","owner":"$superuser","permissions":"rwxr-x---"},{"contentLength":"24","etag":"0x8D9B8CD715E87DE","group":"$superuser","lastModified":"Mon, 06 Dec 2021 15:31:15 GMT","name":"vms/last","owner":"$superuser","permissions":"rw-r-----"}]}
  • What did you expect or want to happen?
    To get the list of paths from the api
  • How can we reproduce it?
    Use PathClient.List
  • Anything we should know about your environment.
    Using linux and go 1.17, nothing special
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Data Lake Storage Gen2MgmtThis issue is related to a management-plane library.Previous VersionsWork related to track1 and track1.5 SDKscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions