You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK sniffs a requested path to convert a dbfs:/-style path to the canonical /-style path expected and returned by the API. A path that contains the string dbfs: is not reachable from the SDK; /dbfs: (an actual path that users have created) is sent as a request with the path /. As an added bonus, this leads to infinite recursion when listing / returns /dbfs: as one of the directories.
This malforms the path if dbfs: or file: appears anywhere in the path other than the beginning. A possible solution might use re.sub() instead of str.replace() to assert the beginning of the path in the replacement search.
The SDK sniffs a requested path to convert a
dbfs:/
-style path to the canonical/
-style path expected and returned by the API. A path that contains the stringdbfs:
is not reachable from the SDK;/dbfs:
(an actual path that users have created) is sent as a request with the path/
. As an added bonus, this leads to infinite recursion when listing/
returns/dbfs:
as one of the directories.The relevant code is at
_DbfsPath.__init__()
, and there is similar code at_VolumesPath.__init__()
This malforms the path if
dbfs:
orfile:
appears anywhere in the path other than the beginning. A possible solution might usere.sub()
instead ofstr.replace()
to assert the beginning of the path in the replacement search.Other Information
The text was updated successfully, but these errors were encountered: