Unable to open SANS interface if incorrect user file path is saved #38118
Labels
Bug
Issues and pull requests that are regressions or would be considered a bug by users (e.g. crashing)
ISIS Team: LSS
Issue and pull requests managed by the LSS subteam at ISIS
Reported By User
Issues that were found or highlighted by a user/scientist
SANS
Issues and pull requests related to SANS
Milestone
Describe the bug
A user managed to set their user file path in the ISIS SANS GUI to just a directory rather than a full file path - it's still not clear how this would have been possible via the GUI. Having managed to do this, they were subsequently unable to open the SANS GUI as it would throw an unexpected exception (see stack trace in Additional context section below).
The GUI holds on to the previous user file path, storing it using
QSettings
. The following script, run in the Workbench script editor, worked to clear the settings and allow the SANS GUI to open again:To Reproduce
Expected behavior
If there is an issue with the path saved in the settings then we should just remove it from the settings and load the interface with the user file input left blank.
Platform/Version (please complete the following information):
Additional context
Stack trace on Windows:
On IDAaaS the stack trace is the same, except the final error type that's thrown is:
The text was updated successfully, but these errors were encountered: