#502 ✓released
Support

Exporting one or more public keys falsely creates the .asc file at the level above the selected folder with the folder name as filename (Catalina only)

Reported by Support | January 21st, 2020 @ 11:26 PM | in 1.6 (closed)

Assigned to GPG Mail Support Plan #1117. When exporting one or more public keys on macOS Catalina, the created .asc file is named after the selected folder and saved a level above it.

Example: Selected output folder is ~/Desktop, file is created at ~/ with name Desktop.asc, so its path is ~/Desktop.asc

Before running the following steps, always make sure to delete any falsely created files first, otherwise the code will switch back to the correct filename.

The bug is not reproducible using German as language due to a different bug, so start GPG Keychain in English.

Steps to reproduce

  1. Start GPG Keychain using the following command

    /System/Applications/GPG\ Keychain.app/Contents/MacOS/GPG\ Keychain

  2. Select one or more public keys

  3. Click on Export in the toolbar

  4. Select the Desktop as folder where you want the file to be saved (any folder will work)

  5. Don't change the filename but keep the one proposed by GPG Keychain

  6. Press Save

Expected

The .asc file containing the exported public keys should be saved at the selected folder ~/Desktop with the filename displayed by GPG Keychain in the save panel

What happens instead

The .asc file is named after the selected folder and saved one level above it. So instead of in ~/Desktop it is saved in ~/

Workaround

Repeat the steps above without first deleting the file written to the wrong directory, since in that case GPG Keychain will not try to internally change the filename and output path and thus save it exactly where the user chose.

Code Problems

Among other things, the code doesn't appear to do what the comments say. The main problem is that _pubFilename is never set.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Tags

Pages