Bug 162206 - Dialog asking for NSS certificate DB password shows when opening options dialog
Summary: Dialog asking for NSS certificate DB password shows when opening options dialog
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.2.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Sarper Akdemir (allotropia)
URL:
Whiteboard: target:25.2.0
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2024-07-26 07:47 UTC by Michael Weghorn
Modified: 2024-08-09 06:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the dialog asking for a password (20.58 KB, image/png)
2024-07-26 07:47 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weghorn 2024-07-26 07:47:17 UTC
Created attachment 195527 [details]
Screenshot of the dialog asking for a password

# Steps to reproduce:

1) start LO Writer
2) open the options dialog: "Tools" -> "Options" (or Alt+F12)

# Actual result:

A dialog shows up, asking for a password (s. attached screenshot):
"Enter password to open file: NSS Certificate DB"

# Expected result:

No dialog asking for a password unless I actually want to do something related to NSS certificates that requires the password.

Reproducible with an fresh user profile as well.

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: dc9486f2443fa52588b625c0a2a288bff56a7a45
CPU threads: 32; OS: Linux 6.9; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 1 Michael Weghorn 2024-07-26 07:48:42 UTC
Bibisected to:

commit 426c641976688e3e4d1ce66f76b27ccbd2dca55a
Author: Sarper Akdemir
Date:   Wed Jul 17 12:47:22 2024 +0200

    tdf#159040: add sign with default certificate to save dialog

@Sarper: Could you please take a look? Or is there a good reason why that dialog should actually show up?
Comment 2 Michael Weghorn 2024-07-26 07:55:42 UTC
(In reply to Michael Weghorn from comment #0)
> # Steps to reproduce:
> 
> 1) start LO Writer
> 2) open the options dialog: "Tools" -> "Options" (or Alt+F12)

More specifically, this seems to happen when the "User Data" page becomes active. (Is the default for a fresh user profile; if another one was previously remembered, moving to that page triggers the dialog.)
Comment 3 m_a_riosv 2024-07-26 11:49:19 UTC
I can't see the issue, while in Safe Mode or not.
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: dc9486f2443fa52588b625c0a2a288bff56a7a45
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 22631); UI render: default; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: threaded
Comment 4 Sarper Akdemir (allotropia) 2024-07-29 07:54:27 UTC
(In reply to Michael Weghorn from comment #0)
> 
> A dialog shows up, asking for a password (s. attached screenshot):
> "Enter password to open file: NSS Certificate DB"
> 
hmm - I'm assuming this didn't happen for me since I didn't use a protected NSS Certificate DB to test.

Michael does the same dialog pop-up appear for you in
`File -> Digital Signatures -> Digital Signatures... -> Sign Document` interaction?
Comment 5 Michael Weghorn 2024-07-29 08:45:49 UTC
(In reply to Sarper Akdemir (allotropia) from comment #4)
> Michael does the same dialog pop-up appear for you in
> `File -> Digital Signatures -> Digital Signatures... -> Sign Document`
> interaction?

Yes, that indeed triggers the same password dialog.
Comment 6 Commit Notification 2024-08-05 11:16:35 UTC
Sarper Akdemir committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/9786f8ea59ccc9225871888d23b5af9ed16a5e5f

tdf#159040 tdf#162206: better the user key selection and test sign with default

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Michael Weghorn 2024-08-05 12:43:05 UTC
As mentioned in the Gerrit change: Fix verified, thanks!

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 31c05aca2715e199fb52bfc995dee6d3fecd96ca
CPU threads: 32; OS: Linux 6.9; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded