counsyl / stor

A cross-compatible CLI and Python API for accessing block and object storage
https://counsyl.github.io/stor/
Other
35 stars 12 forks source link

Fix for normpath for DXPath #104

Closed anujkumar93 closed 5 years ago

anujkumar93 commented 5 years ago

@jtratner @pkaleta

This PR fixes the normpath bug in DXVirtualPath and DXCanonicalPath

Background

Stor had a bug for DXPaths, wherein paths like DXPath('dx://project:/').normpath() errored with TypeError: cannot concatenate 'str' and 'NoneType' objects. This is because for such paths, the resource turns out to be None, which is then attempted to add it to a string '/' in normpath.

Changes

Tested via:

jtratner commented 5 years ago

please add release note for this patch release