Stirling-PDF
Stirling-PDF copied to clipboard
[Bug]: Favicon customization
Installation Method
Docker
The Problem
Hi everyone, I followed the instructions I found here (https://github.com/Stirling-Tools/Stirling-PDF/issues/433) in order to change the favicon. I made new versions to all images that can be found in static folder. For the "favicon.svg", everything is fine, the image is loaded in main page. The problem is with browser favicon, the one in the title bar. It does not load my image, but the default one of Stirling. I tried downloading those images with wget from command line and discovered that the request is being redirected to root folder (which is not an image, of course). Am I doing something wrong? What could I investigate to try to solve this problem?
Version of Stirling-PDF
latest-fat (as today)
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
http://localhost:8080/favicon.ico
Docker Configuration
services:
stirling-pdf:
image: frooodle/s-pdf:latest-fat
container_name: pdf
restart: always
ports:
- '8080:8080'
volumes:
- ./trainingData:/usr/share/tessdata
- ./extraConfigs:/configs
- ./customFiles:/customFiles/
- ./logs:/logs/
environment:
- DOCKER_ENABLE_SECURITY=false
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
- LANGS=pt_BR
Relevant Log Output
I cannot see anything relevant here:
2024-10-14 12:21:44,840 INFO s.s.S.SPdfApplication [main] Starting SPdfApplication v0.29.0 using Java 21.0.4 with PID 9 (/app.jar started by stirlingpdfuser in /)
2024-10-14 12:21:44,841 INFO s.s.S.SPdfApplication [main] The following 1 profile is active: "default"
2024-10-14 12:21:49,229 INFO s.s.S.SPdfApplication [main] Running configs ApplicationProperties(legal=ApplicationProperties.Legal(termsAndConditions=, privacyPolicy=, accessibilityStatement=, cookiePolicy=, impressum=), security=ApplicationProperties.Security(enableLogin=true, csrfDisabled=false, initialLogin=ApplicationProperties.Security.InitialLogin(username=...), oauth2=ApplicationProperties.Security.OAUTH2(enabled=false, issuer=, clientId=, autoCreateUser=false, blockRegistration=false, useAsUsername=email, scopes=[openid, profile, email], provider=google, client=ApplicationProperties.Security.OAUTH2.Client(google=Google [clientId=, clientSecret=NULL, scopes=[https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile], useAsUsername=email], github=GitHub [clientId=, clientSecret=NULL, scopes=[read:user], useAsUsername=login], keycloak=Keycloak [issuer=, clientId=, clientSecret=NULL, scopes=[openid, profile, email], useAsUsername=preferred_username])), loginAttemptCount=5, loginResetTimeMinutes=120, loginMethod=normal), system=ApplicationProperties.System(defaultLocale=pt-BR, googlevisibility=false, showUpdate=true, showUpdateOnlyAdmin=false, customHTMLFiles=false, tessdataDir=/usr/share/tessdata, enableAlphaFunctionality=false), ui=ApplicationProperties.Ui(appName=..., homeDescription=..., appNameNavbar=...), endpoints=ApplicationProperties.Endpoints(toRemove=[], groupsToRemove=[]), metrics=ApplicationProperties.Metrics(enabled=true), automaticallyGenerated=ApplicationProperties.AutomaticallyGenerated(), enterpriseEdition=ApplicationProperties.EnterpriseEdition(customMetadata=ApplicationProperties.EnterpriseEdition.CustomMetadata(autoUpdateMetadata=true, author=username, creator=Stirling-PDF, producer=Stirling-PDF)), autoPipeline=ApplicationProperties.AutoPipeline(outputFolder=null))
2024-10-14 12:21:49,254 INFO s.s.S.c.EndpointConfiguration [main] Disabling pdf-to-book
2024-10-14 12:21:49,254 INFO s.s.S.c.EndpointConfiguration [main] Disabling book-to-pdf
2024-10-14 12:21:49,426 INFO s.s.S.c.s.d.DatabaseBackupHelper [main] Deleted oldest backup: backup_202410141100.sql
2024-10-14 12:21:49,431 INFO s.s.S.c.s.d.DatabaseBackupHelper [main] Database export completed: configs/db/backup/backup_202410141221.sql
2024-10-14 12:21:50,602 INFO s.s.S.SPdfApplication [main] Started SPdfApplication in 6.193 seconds (process running for 6.765)
2024-10-14 12:21:50,607 WARN s.s.S.u.FileMonitor [scheduling-1] not monitoring any directory, even the root directory itself: ./pipeline/watchedFolders
2024-10-14 12:21:50,608 INFO s.s.S.u.FileMonitor [scheduling-1] Registered directory: ./pipeline/watchedFolders
2024-10-14 12:21:51,608 INFO s.s.S.SPdfApplication [main] Stirling-PDF Started.
2024-10-14 12:21:51,608 INFO s.s.S.SPdfApplication [main] Navigate to http://localhost:8080
2024-10-14 12:22:17,870 INFO s.s.S.c.s.s.CustomHttpSessionListener [qtp1762039910-68] Session created: node0hu4kl9yj91nx1irv0swul5kea0
Additional Information
Just to emphasize that "favicon.svg" works flawlessly, but the other icons, which are at the exact same location, not.
Browsers Affected
No response
No Duplicate of the Issue
- [X] I have verified that there are no existing issues raised related to my problem.