Commit graph

684 commits

Author SHA1 Message Date
c0e4671111
Add comprehensive tests for address book operations, including special characters, SQL injection, persistence, race conditions, and invalid inputs
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-28 15:16:49 -04:00
bbbcfb49f0
Add tests for invalid address book operations 2025-03-28 15:04:37 -04:00
9ef2ea64be
Remove logging and output of server information in Socialbox 2025-03-28 15:01:18 -04:00
be25ea49f9
Fix password hash assignment and update timestamp format in PasswordManager 2025-03-28 15:01:13 -04:00
8046b8a8a2
Add additional assertions for session state in SocialClientRegistrationTest 2025-03-28 14:52:58 -04:00
a7d4e6c2e3
Added additional assertion checks 2025-03-28 14:03:59 -04:00
bde2b48470
Fix password verification by passing the peer object instead of UUID
Some checks are pending
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-28 13:53:56 -04:00
fd480ec4ef
Fix password verification by passing the peer object instead of UUID 2025-03-28 13:53:32 -04:00
0669f13493
Throw exception when no password hash is found for the given peer UUID 2025-03-28 13:52:59 -04:00
68eaaf91c2
Add test for retrieving information fields in SettingsTest 2025-03-27 15:40:59 -04:00
d7812d79a0
Rename prefixes in SettingsTest for clarity and consistency 2025-03-27 15:33:31 -04:00
bbf5085e5b
Add tests for deleting signatures in SettingsTest 2025-03-27 15:29:12 -04:00
22629f9b30
Add tests for adding multiple and exceeding signing keys in SettingsTest
Some checks are pending
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release (push) Waiting to run
2025-03-27 15:27:09 -04:00
d140c861a0
Corrected RpcRequest in settingsGetSignatures method to use SETTINGS_GET_SIGNATURES 2025-03-27 15:27:04 -04:00
66ed368d75
Refactor Signature and SigningKeyRecord classes to allow nullable name property and update related methods
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-27 15:21:09 -04:00
200b6a7c1f
Add Base32 decoding method and implement SecretOtp class with serialization methods
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-27 14:09:56 -04:00
b6aa591f8c
Fix address comparison in AddressBookTest to use correct method for address retrieval
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-27 13:45:50 -04:00
2179df3372
Normalize username and domain inputs to lowercase in various classes 2025-03-27 13:40:58 -04:00
f36a7f8563
Increase UDP buffer size and adjust recvfrom limit in UDP server
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-27 13:12:58 -04:00
bb8698bff9
Syntax correction (oops) 2025-03-27 12:54:17 -04:00
eaccaacf96
Normalize domain input to lowercase in getExternalSession method and add authentication check 2025-03-27 12:52:46 -04:00
fb31c3cc6a
Normalize server input to lowercase in RpcClient constructor 2025-03-27 12:52:39 -04:00
dff25f31ba
Normalize domain input to lowercase in session management methods 2025-03-27 12:52:31 -04:00
df519ad89b
Added tests for password deletion and OTP settings in AddressBookTest and SettingsTest 2025-03-27 12:52:16 -04:00
3c151bfd99
Added support for one-time password verification in session creation
Some checks are pending
CI / check-phpdoc (push) Waiting to run
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-26 18:07:27 -04:00
42498f45db
Added additional invalid state test cases 2025-03-26 15:37:25 -04:00
a8acda8155
Moved test case testPeerResolution to SocialClientTest 2025-03-26 15:23:34 -04:00
4cce8bf91b
Moved information field test cases to the more appropriate test class SettingsTest 2025-03-26 15:22:49 -04:00
60e0884af5
Added additional test cases for AddressBookTest 2025-03-26 15:15:03 -04:00
3b0cf38ee4
Added SettingsTest 2025-03-26 15:14:51 -04:00
2e184ebc74
Enforced domain to be lowercase for case-sensitivity purposes and corrected some PhpDoc strings 2025-03-26 15:13:26 -04:00
463e86f59f
Refactored AddressBookGetContact to produce an error rather than returning null if the contact does not exist. 2025-03-26 15:12:09 -04:00
4bad2d42cf
Add tests for deleting contacts in address book functionality
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-26 14:15:58 -04:00
4d2e7ce6e2
Add tests for address book functionality to handle contact addition scenarios 2025-03-26 14:05:52 -04:00
7d13e4acdb
Add comprehensive tests for address book functionality, including contact addition, resolution, and privacy handling
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-26 13:57:36 -04:00
03a4fa2a84
Fix peer identification logic in Socialbox and enhance remote resolution handling
Some checks are pending
CI / check-phpdoc (push) Waiting to run
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-26 13:41:51 -04:00
3250407f2b
Refactor peer identification logic in ResolvePeer and Socialbox for clarity and improved error messaging 2025-03-26 13:11:56 -04:00
5de651bbcb
Enhance logging in PeerInformationManager and Socialbox to track peer resolution and information field retrieval 2025-03-25 15:22:37 -04:00
42168b132d
Update addressBookAddContact method to return boolean and adjust response handling
Some checks are pending
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
2025-03-25 14:22:46 -04:00
4f9cc89cb8
Add methods to retrieve and check existence of information fields in Peer 2025-03-25 14:20:20 -04:00
3d9f5fc6b1
Improve logging in ContactManager to include relationship details and adjust relationship parameter handling in SocialClient 2025-03-25 14:02:10 -04:00
604f75f5c8
Update addressBookAddContact method to return contact UUID instead of boolean
Some checks are pending
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / release_executable (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / release-artifacts (push) Blocked by required conditions
2025-03-25 12:59:09 -04:00
4a7fbd9970
Handle null expiration in KnownSigningKey to set default value 2025-03-25 12:59:03 -04:00
e4f3d50852
Fix indentation in Helper.php for improved code readability 2025-03-25 12:58:58 -04:00
52985b6308
Enhance logging in ContactManager and improve error messages for invalid peer addresses 2025-03-25 12:58:53 -04:00
97ca09d7dd
Increase signature_key length in contact_known_keys.sql to accommodate larger keys 2025-03-25 12:58:48 -04:00
db9fa3f92e
Add signature management methods to Contact class for enhanced key handling 2025-03-25 12:58:42 -04:00
c981ed3d9d
Refactor AddressBookAddContact to improve relationship parameter handling and return contact UUID on success 2025-03-25 12:58:21 -04:00
631689b489
Refactor logging levels in RegisteredPeerManager and update getPeer method to return null for non-existent peers
Some checks failed
CI / check-phpdoc (push) Has been cancelled
CI / release (push) Has been cancelled
CI / debug (push) Has been cancelled
CI / release_executable (push) Has been cancelled
CI / debug_executable (push) Has been cancelled
CI / check-phpunit (push) Has been cancelled
CI / generate-phpdoc (push) Has been cancelled
CI / test (push) Has been cancelled
CI / release-documentation (push) Has been cancelled
CI / release-artifacts (push) Has been cancelled
2025-03-22 01:09:03 -04:00
db153453b5
Rename parameters in RegisteredPeerManager methods for clarity 2025-03-22 01:03:18 -04:00