Skip to content

App crashes when canceling elevation request during settings access #1

@aurelm-w

Description

@aurelm-w

Experienced it with Leosac Key Manager but should work the same way for other apps dependent on wpfapp.
If you click on Settings without administrative rights, the app legitimately asks for elevated permissions and attempts to restart with admin rights.
But if you click on Yes on LKM and then on the Windows UAC prompt click on Cancel the admin privileges elevation, instead of canceling the settings access, the program crashes.

Steps to reproduce (with LKM) :

  • Launch Leosac Key Manager without admin rights.
  • Click Settings.
  • In the UAC prompt click Yes. Then Cancel on the admin login window.

Expected behavior :
The app should just return to the non-admin state and cancel access to the settings.
Actual behavior :
The application crashes after canceling the elevation process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions