Application logo & local_secure #583

Closed
opened 2026-02-04 21:19:22 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @benrubson on GitHub (Mar 1, 2018).

Originally assigned to: @ssddanbrown on GitHub.

Hi,

When we set STORAGE_TYPE=local_secure, and when we define an application logo :

  • the logo does not show on the login page (as it then requires authentication) ;
  • once logged-in, login page redirects to the logo image itself.

Environment :
Debian 9 server
MariaDB 10.1.26
BookStack version : v0.20.0
PHP version : 7.0.27

Thank you 👍

Ben

Originally created by @benrubson on GitHub (Mar 1, 2018). Originally assigned to: @ssddanbrown on GitHub. Hi, When we set `STORAGE_TYPE=local_secure`, and when we define an application logo : - the logo does not show on the login page (as it then requires authentication) ; - once logged-in, login page redirects to the logo image itself. Environment : Debian 9 server MariaDB 10.1.26 BookStack version : v0.20.0 PHP version : 7.0.27 Thank you 👍 Ben
OVERLORD added the 🐛 Bug📖 Docs Update labels 2026-02-04 21:19:22 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Mar 12, 2018):

Thanks @benrubson for reporting, I thought there might be some side-effects in the existing implementation. Will mark to be fixed for next release.

@ssddanbrown commented on GitHub (Mar 12, 2018): Thanks @benrubson for reporting, I thought there might be some side-effects in the existing implementation. Will mark to be fixed for next release.
Author
Owner

@ssddanbrown commented on GitHub (Mar 25, 2018):

Just pushed an update to ensure system images such as the logo remain in public storage. You may need to re-upload the app logo once updated.

Update will be part of next release, Due later today.

@ssddanbrown commented on GitHub (Mar 25, 2018): Just pushed an update to ensure system images such as the logo remain in public storage. You may need to re-upload the app logo once updated. Update will be part of next release, Due later today.
Author
Owner

@benrubson commented on GitHub (Mar 25, 2018):

Many thx Dan 👍

@benrubson commented on GitHub (Mar 25, 2018): Many thx Dan 👍
Author
Owner

@kevinblackdesk commented on GitHub (Feb 24, 2021):

I'm still experiencing this @ssddanbrown. This is only when I visit the login page in an incognito tab. Once I login and logout, the problem is solved. It's only when you have no cookies it seems.

And the problem only exists if you have an logo uploaded, when I removed the logo there are no problems with the login redirect anymore. Very strange.

Exact BookStack Version (Found in settings): BookStack v0.31.6
PHP Version: 7.4

@kevinblackdesk commented on GitHub (Feb 24, 2021): I'm still experiencing this @ssddanbrown. This is only when I visit the login page in an incognito tab. Once I login and logout, the problem is solved. It's only when you have no cookies it seems. And the problem only exists if you have an logo uploaded, when I removed the logo there are no problems with the login redirect anymore. Very strange. Exact BookStack Version (Found in settings): BookStack v0.31.6 PHP Version: 7.4
Author
Owner

@ssddanbrown commented on GitHub (Feb 25, 2021):

@kevinblackdesk If you've migrated to local_secure images this could occur otherwise app logo images uploaded after switching should still upload to the public space to avoid this.

@ssddanbrown commented on GitHub (Feb 25, 2021): @kevinblackdesk If you've migrated to local_secure images this could occur otherwise app logo images uploaded after switching should still upload to the public space to avoid this.
Author
Owner

@kevinblackdesk commented on GitHub (Feb 25, 2021):

@ssddanbrown Also: i'm having a hard time uploading my app logo (.png file) again, even resetting and saving the settings doen't work. After saving the app logo is "nothing" again.
image

@kevinblackdesk commented on GitHub (Feb 25, 2021): @ssddanbrown Also: i'm having a hard time uploading my app logo (.png file) again, even resetting and saving the settings doen't work. After saving the app logo is "nothing" again. ![image](https://user-images.githubusercontent.com/69786972/109118095-2740bb80-7743-11eb-9cc4-9f49a1fe951e.png)
Author
Owner

@ssddanbrown commented on GitHub (Feb 26, 2021):

@kevinblackdesk This type of behavior can occur if the cache is not behaving. You can try running php artisan cache:clear. You may have to run this with sudo depending on permissions set.

@ssddanbrown commented on GitHub (Feb 26, 2021): @kevinblackdesk This type of behavior can occur if the cache is not behaving. You can try running `php artisan cache:clear`. You may have to run this with `sudo` depending on permissions set.
Author
Owner

@kevinblackdesk commented on GitHub (Feb 26, 2021):

That didn't work @ssddanbrown. I select a picture and click the save settings button, a success alert will appear saying the settings are saved but no application logo is uploaded / set.

/usr/local/php74/bin/php artisan cache:clear
Application cache cleared!
@kevinblackdesk commented on GitHub (Feb 26, 2021): That didn't work @ssddanbrown. I select a picture and click the save settings button, a success alert will appear saying the settings are saved but no application logo is uploaded / set. ```sh /usr/local/php74/bin/php artisan cache:clear Application cache cleared! ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#583