ResourceProvider doesnt handle trailing slashes
If your resources directory has a trailing slash config loading is broken as it miscalculates the path by 1 char:
Traceback (most recent call last):
File "/users/blissadm/conda/miniconda/envs/bsx3/bin/daiquiri-server", line 33, in <module>
sys.exit(load_entry_point('daiquiri', 'console_scripts', 'daiquiri-server')())
File "/users/blissadm/local/bsx3.git/bsx3/backend/daiquiri/daiquiri/cli/server.py", line 363, in main
static_url_path="/",
File "/users/blissadm/local/bsx3.git/bsx3/backend/daiquiri/daiquiri/cli/server.py", line 301, in run_server
app, socketio = init_server(**kwargs)
File "/users/blissadm/local/bsx3.git/bsx3/backend/daiquiri/daiquiri/cli/server.py", line 219, in init_server
stomp=stomp,
File "/users/blissadm/local/bsx3.git/bsx3/backend/daiquiri/daiquiri/core/__init__.py", line 157, in __init__
self.setup()
File "/users/blissadm/local/bsx3.git/bsx3/backend/daiquiri/daiquiri/core/components/__init__.py", line 161, in setup
config = YamlDict("config", name)
File "/users/blissadm/local/bsx3.git/bsx3/backend/daiquiri/daiquiri/resources/utils.py", line 198, in __init__
self.__update()
File "/users/blissadm/local/bsx3.git/bsx3/backend/daiquiri/daiquiri/resources/utils.py", line 207, in __update
resourcetype=self._resource_type, resourcename=self._resource_name
File "/users/blissadm/local/bsx3.git/bsx3/backend/daiquiri/daiquiri/core/resources/multi_resource_provider.py", line 77, in resource
f"Resource {resourcetype}/{resourcename} not provided"
daiquiri.core.resources.resource_provider.ResourceNotAvailable: Resource config/pp.yml not provided
It should strip the trailing slash before calculating the prefix here: https://gitlab.esrf.fr/ui/daiquiri/-/blob/master/daiquiri/core/resources/file_resource_provider.py#L49