https://bugs.kde.org/show_bug.cgi?id=491898

            Bug ID: 491898
           Summary: kwallet-query silent failure on writing new entry
    Classification: Frameworks and Libraries
           Product: frameworks-kwallet
           Version: 5.115.0
          Platform: Debian testing
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: va...@kde.org
          Reporter: kdeb...@openaliasbox.org
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY

When attempting to write a new entry using the kwallet-query CLI, the command
silently ignores the write operation and returns with a 0 exit code, indicating
success despite the operation not being performed as expected. The issue lies
within the QueryDriver::writeValue() function in querydriver.cpp, where the
kind variable is assigned KWallet::Wallet::Unknown, causing the function to
prematurely call quit(). 

STEPS TO REPRODUCE
Attempt to write a new entry in KWallet using the kwallet-query CLI.
echo "test" | kwallet-query kdewallet -w mypassword

OBSERVED RESULT
The command returns with a 0 exit code without actually writing the entry. 
Check that entry does not exist via KWalletManager or via cli:
kwallet-query kdewallet -l

EXPECTED RESULT
kwallet-query command should correctly write the new entry with the provided
data, and the CLI should reflect success or failure based on the actual
outcome.

SOFTWARE/OS VERSIONS
OS Debian 13 (trixie)
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
Workaround:
1. Create a new entry manually via the GUI in KWalletManager.
2. Use kwallet-query to write the password or data into the existing entry
created via the GUI.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to