azimutt
azimutt copied to clipboard
Cannot load projects when using an organization logo with a relative path
Steps to reproduce:
- [CLI] Have a working azimutt install.
- [Browser] Set everything up.
- [Browser] Make a dedicated organization.
- [Browser] See that there is no way to change the organization avatar, so decide to update it manually.
- [CLI] Place an image locally (relative to the server path, so with a url starting with
/
). - [CLI] Connect to the database.
- [CLI] Run:
UPDATE organizations SET logo = '/relative/path.jpg' WHERE name = '<org name here>';
. - [Browser] Load a project.
- [Browser] See: "404 Error - Project not found. - Sorry, we couldn't find the project you’re looking for." etc etc.
- [CLI] Run:
UPDATE organizations SET logo = 'https://your.instance.name/relative/path.jpg' WHERE name = '<org name here>';
. - [Browser] refresh.
- [Browser] Enjoy a fully working project.
As a side note, I have not noticed any bug related to a user avatar using a relative path.