🐛 Bug Report: Setting UI_CONFIG_DISABLED breaks uploaded Application Configuration > Images #211

Closed
opened 2025-10-07 23:57:49 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @michaelbeaumont on GitHub.

Reproduction steps

When I upload a new background image and then disable config via UI, the background image is no longer loaded, /api/application-configuration/background-image returns 404 and the alt text is displayed.

Expected behavior

Already uploaded images should still work even after disabling UI config. Alternatively, their paths should be configurable via environment variables.

Actual Behavior

Images can no longer be loaded

Version and Environment

As described above.

Log Output

GET 404 144 B 26 ms Firefox 139  https://id.beaumont.network/api/application-configuration/background-image
Originally created by @michaelbeaumont on GitHub. ### Reproduction steps When I upload a new background image and then disable config via UI, the background image is no longer loaded, `/api/application-configuration/background-image` returns 404 and the alt text is displayed. ### Expected behavior Already uploaded images should still work even after disabling UI config. Alternatively, their paths should be configurable via environment variables. ### Actual Behavior Images can no longer be loaded ### Version and Environment As described above. ### Log Output ``` GET 404 144 B 26 ms Firefox 139 https://id.beaumont.network/api/application-configuration/background-image ```
OVERLORD added the bug label 2025-10-07 23:57:49 +03:00
Author
Owner

@RealOrangeOne commented on GitHub:

I had this happen to me. I think the solution is to set $BACKGROUND_IMAGE_TYPE to the format of the image (happened to me when uploading a PNG). Once $PUBLIC_UI_CONFIG_DISABLED is set, any configuration set through the UI (which includes what format the background image is) is ignored and falls back to the environment.

@RealOrangeOne commented on GitHub: I had this happen to me. I think the solution is to set `$BACKGROUND_IMAGE_TYPE` to the format of the image (happened to me when uploading a PNG). Once `$PUBLIC_UI_CONFIG_DISABLED` is set, any configuration set through the UI (which includes what format the background image is) is ignored and falls back to the environment.
Author
Owner

@stonith404 commented on GitHub:

Thanks for reporting this. This should be fixed in bf710aec56 and will be released in the next release.

@stonith404 commented on GitHub: Thanks for reporting this. This should be fixed in bf710aec5625c9dcb43c83d920318a036a135bae and will be released in the next release.
Author
Owner

@michaelbeaumont commented on GitHub:

I'll give it a try! If it works I guess it just needs to be documented. These config setting are marked as "internal" in the code.

EDIT: it does work but won't be necessary for much longer

@michaelbeaumont commented on GitHub: I'll give it a try! If it works I guess it just needs to be documented. These config setting are marked as "internal" in the code. EDIT: it does work but won't be necessary for much longer
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id-pocket-id-1#211