In version 2.9.9.9 Beta 64-bit on Windows 10 Home version 1903 O.S. build 18362.959, rebuilding the index causes Scrivener to prompt for the password of protected PDF files in the project.
I have imported several password-protected PDF files into a project. This project was created in Scrivener 1.x for Windows and the imports took place in that version. The entire project was later imported into Scrivener 3 for Windows.
When rebuilding the index (to troubleshoot another issue), I was prompted to supply the password for a PDF file. However, the file name was not indicated in the dialog box, so I had to guess at the password.
The dialog box looked the same as the dialog box that pops up when I try to view a password-protected PDF in the edit window.
The console readout indicates the dialog is popping up when the protected PDF is being rebuilt (the debug message is “rebuilding document” but the info message “loading document” never comes up).
At a minimum the document name should be passed to the dialog box so I can see it and know the password that’s being requested,
Thanks for the report. There are multiple problems with what you are seeing, but they can probably all be boiled down to whether encrypted PDFs should have their contents stored in the search index without encryption. That either needs to have a strongly worded warning, or simply just not done. Otherwise there are probably better ways to solve the problem—for example: wasting CPU cycles and disk wear reindexing PDF files every time you sync is probably not necessary given their nature.
In this connection, when I click the magnifying glass icon to search for a word in the project (my binder is displayed on the left, edit window in the center, and I have a file open for editing), the binder pane goes blank, then, after a time, I get the same PDF password request as when I rebuild indexes. And since it does not tell me which file it wants the password for, the search function becomes … tedious. If I click cancel (since I don’t know which file and therefore which password), I get the error message PDF Loader, with the contents Could not load PDF file for printing. I dismiss that by clicking OK.It iterates through all of the password-protected files before finally displaying the search field and results of my last search. So that’s a significant functional problem presumably based on the same root cause.