Univention Bugzilla – Bug 45863
univention-mozilla-firefox provides wrong pref.js
Last modified: 2018-03-14 14:38:45 CET
+++ This bug was initially created as a clone of Bug #42322 +++
$ find desktop/univention-mozilla-firefox/conffiles/ -type f desktop/univention-mozilla-firefox/conffiles/etc/firefox-esr/pref/firefox-esr.js desktop/univention-mozilla-firefox/conffiles/etc/mozilla-firefox/pref/firefox.js desktop/univention-mozilla-firefox/conffiles/opt/firefox/defaults/pref/firefox.js None of those files are currently read by firefox-esr. Correct is /etc/firefox-esr/firefox-esr.js You also don't need to overwrite that file: it is enough to provide another files next to it; for example '/etc/firefox-esr/univention.js' (I verified that by adding different pref("fooX","valX"); to those files and checking <about:config>: Only those values where set of files in /etc/firefox-esr/)
The UCR variable descriptions are all wrong: They still reference "/opt/firefox", while "/usr/lib/firefox-esr" is correct.
proposed patches: <https://git.knut.univention.de/univention/ucs/commit/d2d0f5a0dec003ed8d8bd3f61e998452e3296674> <https://git.knut.univention.de/univention/ucs/commit/c28a2a7cee7ee5054a6d74410f9008f4d13e8e65> for Bug #46120
[4.3-0 e60286fe54] Bug #45863 firefox: Fix location of UCR template [4.3-0 25478e8486] Bug #45863: Update UCR templates for Debian Stretch [4.3-0 b1b756e8d0] Bug #45863: Fix typo ucr variable description [4.3-0 63d4ba30da] Bug #45863: Merge branch 'juern/b45863_firefox_ucr' into 4.3-0 [4.3-0 37cab14238] Bug #45863: Set firefox startpage on first installation [4.3-0 db7c34e5c3] Bug #45863, #46253: Changelog
Currently, I'm unable to start firefox-esr. The following message is shown: "Failed to read the configuration file. Please contact your system administrator." After moving /etc/firefox-esr/univention.js to /tmp, I was able to start firefox. The content of univention.js: root@master431:~# cat /tmp/univention.js // Warning: This file is auto-generated and might be overwritten by // univention-config-registry. // Please edit the following file(s) instead: // Warnung: Diese Datei wurde automatisch generiert und kann durch // univention-config-registry ueberschrieben werden. // Bitte bearbeiten Sie an Stelle dessen die folgende(n) Datei(en): // // /etc/univention/templates/files/etc/firefox-esr/univention.js // pref("general.config.obscure_value", 0); pref("browser.shell.checkDefaultBrowser", "false"); pref("general.config.filename", "univention.cfg"); pref("browser.startup.homepage", "https://www.univention.de/"); pref("network.negotiate-auth.trusted-uris", "deadlock43.intranet"); pref("startup.homepage_welcome_url", "https://www.univention.de/"); pref("browser.startup.homepage_reset", "https://www.univention.de/"); root@master431:~#
(In reply to Stefan Gohmann from comment #5) > Currently, I'm unable to start firefox-esr. The following message is shown: > "Failed to read the configuration file. Please contact your system > administrator." ... > root@master431:~# cat /tmp/univention.js ... > pref("general.config.filename", "univention.cfg"); Do you have the following symbolic link and file: /usr/lib/firefox-esr/univention.cfg -> /etc/firefox-esr/univention.cfg
found it. I used lstrip und rstrip wrong... :(
[4.3-0 1d51a8e688] Bug #45863: fix univention.cfg Version: 12.0.0-6A~4.3.0.201803051634
Yes, works now.
UCS 4.3 has been released: https://docs.software-univention.de/release-notes-4.3-0-en.html https://docs.software-univention.de/release-notes-4.3-0-de.html If this error occurs again, please use "Clone This Bug".