azimutt icon indicating copy to clipboard operation
azimutt copied to clipboard

Cannot load projects when using an organization logo with a relative path

Open 7heo opened this issue 11 months ago • 1 comments

Steps to reproduce:

  1. [CLI] Have a working azimutt install.
  2. [Browser] Set everything up.
  3. [Browser] Make a dedicated organization.
  4. [Browser] See that there is no way to change the organization avatar, so decide to update it manually.
  5. [CLI] Place an image locally (relative to the server path, so with a url starting with /).
  6. [CLI] Connect to the database.
  7. [CLI] Run: UPDATE organizations SET logo = '/relative/path.jpg' WHERE name = '<org name here>';.
  8. [Browser] Load a project.
  9. [Browser] See: "404 Error - Project not found. - Sorry, we couldn't find the project you’re looking for." etc etc.
  10. [CLI] Run: UPDATE organizations SET logo = 'https://your.instance.name/relative/path.jpg' WHERE name = '<org name here>';.
  11. [Browser] refresh.
  12. [Browser] Enjoy a fully working project.

7heo avatar Mar 10 '24 00:03 7heo

As a side note, I have not noticed any bug related to a user avatar using a relative path.

7heo avatar Mar 10 '24 00:03 7heo