Login issues after enabling 'enable higher security uploads' #2348

Closed
opened 2026-02-05 03:45:22 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @techauthoruk on GitHub (Aug 4, 2021).

Describe the bug
After enabling this option in settings, adding STORAGE_TYPE=local_secure to the .env file and moving all my images and sub-directories to the storage/ uploads/images directory with no other changes to ANY configuration in BookStack or Apache, I have log in issues

Steps To Reproduce
Steps to reproduce the behavior:

  1. Clost the local browser
  2. Make the changes above
  3. Restart the Apache service in the OS
  4. Access the BookStack instance in local browser
  5. Log in as normal
  6. The browser displays the app icon instead of the normal default home screen - it appears that the user is actually logged in, but isn't being directed to the default home screen

Expected behavior
After enteing log in credentials I would expect to arrive at the default home page

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): BookStack v21.05.3
  • PHP Version: 8.0.8
  • Hosting Method (Nginx/Apache/Docker): Apache 2

Additional context
This issue appears to be browser independent. _ have run the Cleanup Images option in Maintenance, but does not seem to have any bearing.

I will reboot the server after I have posted this and then update accordingly.....

OK after a server reboot, the problem persists. Here is that happens after logging in:

image

...it directs to a page showing the app icon. If I edit the url to the base URL I can access CMS - either I have screwed something up big time or I am missing something somewhere....anyone?

Originally created by @techauthoruk on GitHub (Aug 4, 2021). **Describe the bug** After enabling this option in settings, adding ` STORAGE_TYPE=local_secure` to the `.env` file and moving all my images and sub-directories to the `storage/ uploads/images` directory with no other changes to ANY configuration in BookStack or Apache, I have log in issues **Steps To Reproduce** Steps to reproduce the behavior: 1. Clost the local browser 2. Make the changes above 2. Restart the Apache service in the OS 3. Access the BookStack instance in local browser 4. Log in as normal 5. The browser displays the app icon instead of the normal default home screen - it appears that the user is actually logged in, but isn't being directed to the default home screen **Expected behavior** After enteing log in credentials I would expect to arrive at the default home page **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): BookStack v21.05.3 - PHP Version: 8.0.8 - Hosting Method (Nginx/Apache/Docker): Apache 2 **Additional context** This issue appears to be browser independent. _ have run the `Cleanup Images` option in Maintenance, but does not seem to have any bearing. I will reboot the server after I have posted this and then update accordingly..... OK after a server reboot, the problem persists. Here is that happens after logging in: ![image](https://user-images.githubusercontent.com/57015243/128253834-bdd6f169-35e0-4410-889d-faa7472a0af7.png) # ...it directs to a page showing the app icon. If I edit the url to the base URL I can access CMS - either I have screwed something up big time or I am missing something somewhere....anyone?
Author
Owner

@ssddanbrown commented on GitHub (Aug 5, 2021):

Hi @techauthoruk,
I think this is related to the latter part of question 7 within #2866.

Have you done the step to re-upload the app logo image in the settings area after changing over to local_secure images?

What you're experiencing is often caused by the app logo being requested through the app but blocked by the secure image system, which BookStack detects as the last attempted access so it takes that URL as the user's original location intent.

@ssddanbrown commented on GitHub (Aug 5, 2021): Hi @techauthoruk, I think this is related to the latter part of question 7 within #2866. Have you done the step to re-upload the app logo image in the settings area after changing over to local_secure images? What you're experiencing is often caused by the app logo being requested through the app but blocked by the secure image system, which BookStack detects as the last attempted access so it takes that URL as the user's original location intent.
Author
Owner

@techauthoruk commented on GitHub (Aug 5, 2021):

Arggghhhhhhh!!!!!!!!!!!!

@ssddanbrown Dan, I am a total....welll, lets put it this way I missed that step from #2866 (which is very embarrassing!). Anyway, I am off to hide in a darkened corner of the room - because that obviously fixed the problem!

I will close this issue now, although you never know another total analphabet like me may find this thread useful!

@techauthoruk commented on GitHub (Aug 5, 2021): Arggghhhhhhh!!!!!!!!!!!! @ssddanbrown Dan, I am a total....welll, lets put it this way I missed that step from #2866 (which is very embarrassing!). Anyway, I am off to hide in a darkened corner of the room - because that obviously fixed the problem! I will close this issue now, although you never know another total analphabet like me may find this thread useful!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2348