PathProperties._from_generated raises exception if last_modified is empty #23834
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Data Lake Storage Gen2
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Storage
Storage Service (Queues, Blobs, Files)
Describe the bug
Listing paths may fail on directories with empty
last_modified
.Introduced in PR #16093.
To Reproduce
Steps to reproduce the behavior:
last_modified
filled.TypeError: strptime() argument 1 must be str, not None
at azure/storage/filedatalake/_models.py:224.Expected behavior
Listing directories not failing on directories/files with empty
last_modified
.If
last_modified
can't be cast todatetime.datetime
, it should beNone
.Additional context
Not sure how
last_modified
ended up being empty in the first place, but I've met with such case on client's datalake.The text was updated successfully, but these errors were encountered: