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

Fix support for referenced URL fields #8788

Conversation

varjolintu
Copy link
Member

Full or partial references in the URL fields are not supported.

At first simply using webUrl() instead of url() was tried, but resolveUrl() can accept some invalid URL's and the tests will fail. Instead the simpler resolveMultiplePlaceholders() is used instead if a reference is found.

Fixes #8787

Testing strategy

Tests added. Also did manual tests with both full and partial reference URL's.

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2022

Codecov Report

Base: 64.88% // Head: 64.41% // Decreases project coverage by -0.46% ⚠️

Coverage data is based on head (b4ef66c) compared to base (5b31288).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head b4ef66c differs from pull request most recent head a86e778. Consider uploading reports for the commit a86e778 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8788      +/-   ##
===========================================
- Coverage    64.88%   64.41%   -0.46%     
===========================================
  Files          342      341       -1     
  Lines        44448    44239     -209     
===========================================
- Hits         28837    28496     -341     
- Misses       15611    15743     +132     
Impacted Files Coverage Δ
src/browser/BrowserService.h 100.00% <ø> (ø)
src/browser/BrowserService.cpp 26.37% <100.00%> (-1.62%) ⬇️
src/core/Entry.cpp 82.75% <100.00%> (+0.03%) ⬆️
src/gui/SquareSvgWidget.h 0.00% <0.00%> (-100.00%) ⬇️
src/gui/SquareSvgWidget.cpp 0.00% <0.00%> (-100.00%) ⬇️
src/qrcode/QrCode.cpp 0.00% <0.00%> (-79.69%) ⬇️
src/gui/TotpExportSettingsDialog.cpp 0.00% <0.00%> (-71.01%) ⬇️
src/gui/osutils/OSUtilsBase.cpp 40.00% <0.00%> (-60.00%) ⬇️
src/gui/osutils/nixutils/NixUtils.h 50.00% <0.00%> (-50.00%) ⬇️
src/browser/BrowserMessageBuilder.cpp 56.58% <0.00%> (-6.55%) ⬇️
... and 92 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@droidmonkey
Copy link
Member

Merge after #8489

@varjolintu varjolintu force-pushed the fix/support_reference_url_fields branch from b4ef66c to c130306 Compare February 19, 2023 10:44
@varjolintu varjolintu force-pushed the fix/support_reference_url_fields branch from c130306 to a86e778 Compare February 26, 2023 18:53
@droidmonkey droidmonkey merged commit c1720c3 into keepassxreboot:develop Mar 30, 2023
@varjolintu varjolintu deleted the fix/support_reference_url_fields branch March 30, 2023 11:23
@droidmonkey droidmonkey added the pr: backported Pull request backported to previous release label Jan 13, 2024
libf-de pushed a commit to libf-de/keepassxc-secretservice-dbus that referenced this pull request Mar 11, 2024
Release 2.7.7

- Support USB Hotplug for Hardware Key interface [keepassxreboot#10092]
- Support 1PUX and Bitwarden import [keepassxreboot#9815]
- Browser: Add support for PassKeys [keepassxreboot#8825, keepassxreboot#9987, keepassxreboot#10318]
- Build System: Move to vcpkg manifest mode [keepassxreboot#10088]

- Fix multiple TOTP issues [keepassxreboot#9874]
- Fix focus loss on save when the editor is not visible anymore [keepassxreboot#10075]
- Fix visual when removing entry from history [keepassxreboot#9947]
- Fix first entry is not selected when a search is performed [keepassxreboot#9868]
- Prevent scrollbars on entry drag/drop [keepassxreboot#9747]
- Prevent duplicate characters in "Also choose from" field of password generator  [keepassxreboot#9803]
- Security: Prevent byte-by-byte and attachment inference side channel attacks [keepassxreboot#10266]
- Browser: Fix raising Update Entry messagebox [keepassxreboot#9853]
- Browser: Fix bugs when returning credentials [keepassxreboot#9136]
- Browser: Fix crash on database open from browser [keepassxreboot#9939]
- Browser: Fix support for referenced URL fields [keepassxreboot#8788]
- MacOS: Fix crash when changing highlight/accent color [keepassxreboot#10348]
- MacOS: Fix TouchID appearing even though lid is closed [keepassxreboot#10092]
- Windows: Fix terminating KeePassXC processes with MSI installer [keepassxreboot#9822]
- FdoSecrets: Fix database merge crash when enabled [keepassxreboot#10136]

# -----BEGIN PGP SIGNATURE-----
#
# iQEzBAABCAAdFiEENIkEDB8MPuq41ValRA/GXy4MbgEFAmXs7VsACgkQRA/GXy4M
# bgHLpwf/brnyPPs3gJxZmD2pn8542D4CCsDh0fTceurOtqCe3J4Y+Fftc5euuoQu
# 6rP4vJdd586l7JX5FnYIPXvGiU9op3MudJh+y+RN/PWwKcXNIXfUItMhpZEka49n
# xnw+Wvbilg1QIHSSmZdIjBpohnEkA67qhWauc3bCacrRyEvIOzVMTxnqDTe4GUDy
# CyauaRMMKezRTpLxSsk63TDAZZgDwK4ci5lC6ysHekc1Za6IbI3fMFjz1BGj+kPU
# tMHMfDCWqK/5JZ27ZWcxy7m8tJY9m3rb+MoCyFRQz9ixaEe29yf5NqYdm9sn1Dlh
# O7aFi7/EJtsBlXdguw5BcTPbsL7XEQ==
# =Cots
# -----END PGP SIGNATURE-----
# gpg: directory '/home/runner/.gnupg' created
# gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
# gpg: Signature made Sat Mar  9 23:14:35 2024 UTC
# gpg:                using RSA key 3489040C1F0C3EEAB8D556A5440FC65F2E0C6E01
# gpg: Can't check signature: No public key
@phoerious phoerious added pr: bugfix Pull request that fixes a bug and removed bug labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: Browser pr: backported Pull request backported to previous release pr: bugfix Pull request that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support fields reference in URL
4 participants