Repository navigation
A fix release for :latest, all of it around one thing: the "no password"
tick in the setup wizard.
Fixed
- Ticking "no password" in the setup wizard no longer locks you out. Since 2.19.0 the wizard said "saved" and the very next page asked for a password that didn't exist (from 2.19.2 on it was the lock: "No Web UI password is set …"), after a restart too. The lock is meant for an instance that was configured once and lost its password, and the wizard's own save looked exactly like that. The tick is now stored as a choice of its own, so the Web UI stays open as you asked, and the startup log says so in one line. A password set anywhere (the wizard, Settings or
WEB_PASSWORD) ends it, as long as the data directory can be written (more on that below). - Moving an open instance with the Web UI's backup export and import keeps it open, for a backup exported from 2.19.3 on. The import brings the choice along only onto an instance that is open anyway, fresh or open by choice, never onto one with a password or a locked one. An older backup doesn't carry the choice, so the import onto a new instance locks it, and the import now says so and that
WEB_PASSWORDplus a restart gets you in. Telegram and Discord/restoreonto a new instance and the restore at boot after a lost settings.json don't bring it, and the instance comes back locked. For the one at boot that's on purpose: I measured that the newest copy next to the data is still the open one right after you set a password under Settings, so carrying it would reopen an instance you just closed. - Locked out by the tick before this update? Set
WEB_PASSWORDand restart to get in. The update doesn't open it for you. What the old wizard saved is byte for byte what it saves when the password comes fromWEB_PASSWORD, so it doesn't prove you chose to run open. The lock page says the same. - Settings, the backup import and the setup wizard no longer say "saved" when nothing could be written. With the data directory not writable, the page said "saved" anyway and the change was gone after the next restart. A password set that way on an instance that runs open by choice protected it only until then, and it came back open while you thought you'd closed it. I measured that with the data directory set read-only. The page now says the save failed and that the change, the password too, only holds until a restart, in a box that stays on the page rather than a toast that's gone after four seconds, and in the page's language. A backup import that carried a password did the same on that instance, in the Web UI and through Telegram and Discord
/restore, read-only or with a full disk: everything was listed as restored, settings included. Now each part that couldn't be written is named as an error, and the Web UI shows those errors and the same message in a box you have to click away before it reloads. The wizard said "saved" too, and after a restart the instance was back before setup; it now takes you to that message on Settings. - After logging in you land on the address you asked for, query and all. The login kept the path and dropped the rest. That hit the message above hardest: the new password makes the page ask for a login, and afterwards you were on plain Settings with nothing to say the save had failed. I followed it the way the browser does, through the login page, before and after.
WEB_PASSWORDon a read-only data directory says it couldn't end the "no password" choice. The password is in force, but settings.json still says open, and once you take the variable out again the next start is open. Nothing can change that file without a disk that takes writes, so the start now says it in one line instead of "Failed to save settings", and on a full disk it says to free up space.- The README and the security notes said an empty password means no login. They now say what actually happens, the new instance before the wizard included.