lantern icon indicating copy to clipboard operation
lantern copied to clipboard

make sure "settings load failure" is working

Open lanterndev opened this issue 13 years ago • 7 comments

lantern-ui has a "settingsLoadFailure" modal for the case that Lantern had a problem trying to load settings, which (as of getlantern/lantern-ui@b39a453) looks like this:

Screen Shot 2013-03-04 at 3 38 34 PM

Currently it offers a "restart" option which will POST to /interaction/restart if chosen, and which should result in Lantern restarting, as well as a "reset" option which will POST to /interaction/reset, and which should result in Lantern moving aside the user's unloadable settings file (to the desktop?) before restarting. In either case, {"notify": true|false} is sent with the request to match the checkbox, and if true, Lantern should log this (along with any relevant debugging info) with exceptional.io.

We should make sure this modal is actually triggered when there's a problem loading settings and that the actions it offers work as advertised.

lanterndev avatar Mar 04 '13 20:03 lanterndev

@skivvies If the settings file is encrypted, what good is moving it onto the desktop?

ghostdance avatar Mar 11 '13 19:03 ghostdance

On OS X at least, the settings file can be decrypted with the user's administrator password, and hopefully the same is true with Windows and Ubuntu. In general, it feels like bad form to me for a program to automatically delete a file it's having trouble opening before giving the user a chance to see what's going on, or potentially send it to someone she trusts to debug further. Especially since the user might not have a backup of her proxied sites list or other settings that could have taken a while to get right.

lanterndev avatar Mar 11 '13 19:03 lanterndev

@leahxschmidt As of getlantern/lantern-ui@4d49e478b5 the UI now offers retry instead of restart

lanterndev avatar Mar 11 '13 21:03 lanterndev

The backend supports this.

leahxschmidt avatar Mar 14 '13 18:03 leahxschmidt

@leahxschmidt Does the backend actually move the settings file to the Desktop as the UI claims?

lanterndev avatar Mar 18 '13 20:03 lanterndev

No, it doesn't. There's no cross-platform way to do it. Ticket, please.

On Mon, Mar 18, 2013 at 4:40 PM, skivvies [email protected] wrote:

@leahxschmidt https://github.com/leahxschmidt Does the backend actually move the settings file to the Desktop as the UI claims?

— Reply to this email directly or view it on GitHubhttps://github.com/getlantern/lantern/issues/577#issuecomment-15080281 .

leahxschmidt avatar Mar 18 '13 21:03 leahxschmidt

I'd reopened this ticket, but okay, I'll close it and we can track this in #607 instead.

lanterndev avatar Mar 18 '13 21:03 lanterndev