Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
tmoerschell opened this issue Feb 23, 2024 · 6 comments · Fixed by #11540
Closed
2 tasks done
Milestone

Comments

@tmoerschell
Copy link

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.

@TheOneRing
Copy link
Member

Thx I opened: #11533 for your second suggestion.

@TheOneRing TheOneRing added this to the Desktop 6.0 milestone Feb 23, 2024
@TheOneRing
Copy link
Member

We will take care that the No button is the default action.
For the window behavior that probably an issue with the window manager.

Could you please report your version?
Settings->About->Versions and paste it here?
Should look something like:

testpilotcloud 6.0.0.13196-daily20240125 ab204c
Libraries Qt 6.6.1, OpenSSL 3.2.0 23 Nov 2023
Using virtual files plugin: wincfapi
OS: windows-10.0.22631 (build arch: x86_64, CPU arch: x86_64)
QPA: windows

@tmoerschell
Copy link
Author

ownCloud 4.2.0 [GITDIR](https://github.com/owncloud/client/commit/GITDIR-NOTFOUND)
Libraries Qt 5.15.12, OpenSSL 3.1.4 24 Oct 2023
Using virtual files plugin: suffix
opensuse-tumbleweed-6.7.6-1.gb9dc7c6-default

4.2.0 seems to be the latest in the official Tumbleweed repo. Quite surprised tbh... I'll install the latest 5.2.1 and let you know if anything changed.

For the window manager, I should also mention that I'm using Wayland, should that be relevant.

@TheOneRing
Copy link
Member

For the window manager, I should also mention that I'm using Wayland, should that be relevant.

Known issue then

@tmoerschell
Copy link
Author

Update: with version 5.2.1.13040 979bb9, the dialog did show above the main window. It's only about the default selected button then.

@saw-jan
Copy link
Member

saw-jan commented Mar 28, 2024

Tested on ownCloud 6.0.0.13589-daily20240328 [32670a]

Screenshot from 2024-03-28 15-13-52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants