It appears that it is possible to create hosted raw repositories with an empty “name” property when using the scripting API. The resulting repositories can not be deleted and have invalid URLs.
Run the following Groovy script:
On the web UI, as name "NX.coreui.model.Repository-1" is displayed, with the URL "http://localhost:8081/repository//"
The repositories REST API returns:
Deletion via UI fails with the message:
...and the logs show a NullPointerException.