Project

General

Profile

Bug #40981

Updated by Volker Theile over 4 years ago

The services/CephFS class does not handle strings correctly. Some calls of the Cython implementation require bytes instead of strings, other functions return bytes which are not converted to strings, thus the initial behaviour of the function is not working.
E.g. calling CephFS::get_dir_list() should filter out '.' and '..'.

The unfixed code returns e.g.:
<pre><code class="json">
{
"paths": [
"/b",
"/b'.'",
"/b'..'",
"/b'volumes'"
]
}
</code></pre>


instead of:
<pre><code class="json">
{
"paths": [
"/",
"/volumes"
]
}
</code></pre>

Back