Amogh/Fix Security Key popup cancellation bug #281#318
Open
Amoghhosamane wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Details
Description
Fixes the Security Key popup cancellation workflow for Issue #281.
Previously, cancelling the Security Key prompt could still allow navigation to continue into the application or continue file operations, even when the user intended to abort the process. The issue occurred because the fullscreen SecurityKeyUI used
pushReplacementduring cancellation and the calling flows did not properly await or validate cancellation results.This PR updates the authentication and file operation flows to correctly stop execution when the Security Key popup is cancelled.
Key updates include:
Updated
SecurityKeyUIcancel behavior to useNavigator.pop(context, false)Modified
getKeyFromUserIfRequired()to returnFuture<bool>Added cancellation handling in:
SolidLoginAuthHandlerSolidLoginActionsPrevented continuation of workflows after user cancellation
Fixed lint issues related to flow control braces
Verified no unrelated formatting or feature changes are included
Modified files:
lib/src/widgets/security_key_ui.dartlib/src/utils/solid_pod_helpers.dartlib/src/widgets/solid_login_auth_handler.dartlib/src/widgets/solid_login_actions.dartlib/src/utils/solid_file_operations_upload.dartlib/src/utils/solid_file_operations_download.dartlib/src/utils/solid_file_operations_print.dartRelated Issues
Fixes #281
Type of Change
How To Test?
Click "Cancel" on the Security Key popup.
Verify:
flutter analyze dart format . make prep make qtestChecklist
Screenshots included here/in linked issue #
Changes adhere to the style and coding guidelines
I have performed a self-review of my code
I have commented my code, particularly in hard-to-understand areas
I have made corresponding changes to the documentation
Any dependent changes have been merged and published in downstream modules
The update contains no confidential information
The update has no duplicated content
No lint check errors are related to these changes (
make preporflutter analyze lib)Integration test
dart testoutput or screenshot included in issue #I tested the PR on these devices:
I have identified reviewers
The PR has been approved by reviewers
Finalising