Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/#2820 more detailed share messages #2946

Conversation

ckieschnick
Copy link
Contributor

Introduced more detailed messages to show when a specific group cannot be shared (configuration error or disabled in settings).
Small change in ShareObserver which could cause an assertion in development mode and a warning in release mode when sharing export was disabled.

Type of change

  • ✅ Bug fix (non-breaking change which fixes an issue)
  • ✅ Refactor (significant modification to existing code)

Description and Context

Introduced detailed messages for sharing label. Since the error messages in the settings are created in a hierarchical fashion, I would refrain from showing when import/export was disabled as long as the settings themselves are invalid.

Found a small issue during debugging. The ShareObserver did filter out export shares when the export feature was disabled, but did try to find the export group. This led to warnings/assertions. Since the class does additional filtering of unneeded imports when reacting to the file change signal, I removed the filter of references for group - share associations.

"Fixes #2820"

Screenshots

Message

Testing strategy

Manually tested.

Checklist:

  • ✅ I have read the CONTRIBUTING document.
  • ✅ My code follows the code style of this project.
  • ✅ Related tests passed.

@droidmonkey droidmonkey self-requested a review April 8, 2019 01:00
@droidmonkey droidmonkey added this to the v2.4.1 milestone Apr 8, 2019
Christian Kieschnick added 2 commits April 7, 2019 21:05
ShareObserver watches all shares to and considers settings only on
checking for changes. This fixes an assertion when an export group
signal is received, but export was disabled.
Extended the message for shared groups to indicate deactivate
import/export and errors when the share was not correctly configured.
@droidmonkey droidmonkey force-pushed the hotfix/2820-more-detailed-share-messages branch from 8fce6e1 to 4c93269 Compare April 8, 2019 01:11
@droidmonkey droidmonkey merged commit 29c79c9 into keepassxreboot:release/2.4.1 Apr 8, 2019
droidmonkey added a commit that referenced this pull request Apr 12, 2019
- Fix database deletion when using unsafe saves to a different file system [#2889]
- Fix opening databases with legacy key files that contain '/' [#2872]
- Fix opening database files from the command line [#2919]
- Fix crash when editing master key [#2836]
- Fix multiple issues with apply button behavior [#2947]
- Fix issues on application startup (tab order, --pw-stdin, etc.) [#2830]
- Fix building without WITH_XC_KEESHARE
- Fix reference entry coloring on macOS dark mode [#2984]
- Hide window when performing entry auto-type on macOS [#2969]
- Improve UX of update checker; reduce checks to every 7 days [#2968]
- KeeShare improvements [#2946, #2978, #2824]
- Re-enable Ctrl+C to copy password from search box [#2947]
- Add KeePassXC-Browser integration for Brave browser [#2933]
- SSH Agent: Re-Add keys on database unlock [#2982]
- SSH Agent: Only remove keys on app exit if they are removed on lock [#2985]
- CLI: Add --no-password option [#2708]
- CLI: Improve database extraction to XML [#2698]
- CLI: Don't call mandb on build [#2774]
- CLI: Add debug info [#2714]
- Improve support for Snap theming [#2832]
- Add support for building on Haiku OS [#2859]
- Ctrl+PgDn now goes to the next tab and Ctrl+PgUp to the previous
- Fix compiling on GCC 5 / Xenial [#2990]
- Add .gitrev output to tarball for third-party builds [#2970]
- Add WITH_XC_UPDATECHECK compile flag to toggle the update checker [#2968]
@ckieschnick ckieschnick deleted the hotfix/2820-more-detailed-share-messages branch August 12, 2019 16:04
@ckieschnick ckieschnick restored the hotfix/2820-more-detailed-share-messages branch August 12, 2019 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants