sciencemesh / cs3api4lab

CS3APIs Jupyterlab connector
Apache License 2.0
4 stars 11 forks source link

Crash when trying to list contents for empty home #196

Open diocas opened 2 years ago

diocas commented 2 years ago

I had an issue which prevented the server extension to load. So the response to the home path was 404, which made the extension do a GET request to /api/contents (note the missing trailing slash). Our contents manager crashed with a very strange error (the asyncify was failing).

This is a corner case, but can you check if this can be prevented?

mateusz-garlacz commented 2 years ago

Hi, can you provide more details on how to reproduce the bug, e.g. the URL? Does this issue occur constantly? I tried to reproduce the error with empty and populated /home, with and without the slash, but without success. Btw, the get method in the contents manager is not asyncified