Skip to content

Select 'No' button by default in the unknown certificate dialog, and show the dialog above the main window #11531

@tmoerschell

Description

@tmoerschell

Pre-submission Checks

  • I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Feature description

Two small UI/UX improvements, reducing the number of keystrokes you need to dismiss certificate errors.

Currently, when connecting to a public network with a sing-in portal, the OwnCloud client will show a certificate error, since the requests are not answered by the correct server, and thus not with the correct certificate.

Now, the button selected by default is 'Yes'. This is the less likely answer, as one should not go about trusting every certificate he comes across.

Furthermore, at least when the client is hidden and the error dialog pops up, the main window is shown as well and covers the pop-up. The main window is unresponsive since the dialog is modal. As a result, one first needs to figure out that there is a dialog open in the background before switching to it and closing it.

Proposed solution

  1. Make the button selected by default be the refusal button.
  2. Make the dialog transient, i.e. make sure it is always shown on top of the main window.

Alternative solutions you considered

No real alternative to 1., but a further improvement to encounter this situation less often would be to detect the answer as a sign-on portal and pause syncing while the server can't be reached.

For 2., if there is a way to only show the dialog, without the main window, this would be good as well. Or, instead of directly opening a dialog, there could be a notification, which is more easily dismissed, when the client is hidden.

Additional context

Issue encountered on KDE Plasma.
Source of the dialog: https://github.com/owncloud/client/blob/2db0920436d666e3d2bbbc786e6692516327bbc4/src/gui/tlserrordialog.ui

I have little experience with QT. Someone else will probably be much quicker than myself to implement this. If no one wants to do this within a week or something, I will try to do it myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions