Squid error pages unavailable following update to 23.7.8

Started by hhabroad, November 13, 2023, 03:48:00 PM

Previous topic - Next topic
Hello,

It appears that the OPNsense squid configuration templates need to be updated for the change in language file paths with the update to 23.7.8 when using Squid error pages.  The template configures Squid to look for the error pages under /usr/local/share/squid-langpack/en-us which doesn't exist.  The actual path is /usr/local/share/squid-langpack/en.

This error unfortunately causes Squid to fail to start.  A workaround is to select the OPNsense error pages instead.

I'm not sure who would be responsible for adapting the template configuration following a modification by Squid package maintainers.

Thanks,

Ashley

Hi Ashley,

Yes, the problem existed for a while but I wasn't aware they switched the language sub-directory for en-us to en? As you can see we only changed the language pack directory and I made the problem more visible in the template:

https://github.com/opnsense/core/commit/2495fb0dc4

Solving this requires some form of complexity either by forward-guessing the directory name, direct mapping of language directories to manually created symlinks or allowing to select the actual language directory in the GUI (has another challenge attached for implementational reasons).


Cheers,
Franco

PS: Yeah they did, this stuff is impossible to keep track of:

https://github.com/opnsense/ports/commit/9ccba784e

-%%ETCDIR%%/errors/en-zw
-%%ETCDIR%%/errors/en-za
-%%ETCDIR%%/errors/en-us
-%%ETCDIR%%/errors/en-uk
-%%ETCDIR%%/errors/en-tt
-%%ETCDIR%%/errors/en-sg
-%%ETCDIR%%/errors/en-ph
-%%ETCDIR%%/errors/en-nz
-%%ETCDIR%%/errors/en-jm
-%%ETCDIR%%/errors/en-in
-%%ETCDIR%%/errors/en-ie
-%%ETCDIR%%/errors/en-gb
-%%ETCDIR%%/errors/en-cn
-%%ETCDIR%%/errors/en-ca
-%%ETCDIR%%/errors/en-bz
-%%ETCDIR%%/errors/en-au

All these symlinks(?) were removed and are not in the language pack.


Cheers,
Franco