Commits
Gregory Chalenko authored and Vladimirs Maksimovs committed 107fa0b4a40M
A......... [ZBX-24500] fixed an issue that allowed defining multiple PSK keys for the same PSK identity used in hosts, proxies, and autoregistration * commit '6e0d8c07c8097ce5d47ee8c6cb05ee52966129ec': (33 commits) .......... [ZBX-24500] fixed test code styling .......... [ZBX-24500] fixed constants .......... [ZBX-24500] removed flag .......... [ZBX-24500] added psk encryption test A......... [ZBX-24500] fixed coding style issues; enabled testAutoregistration for API tests lauched using ApiJsonTests entrypoint A......... [ZBX-24500] fixed incorrect validation of tls fields A......... [ZBX-24500] prevented updating of tls_connect, and tls_accept fields of discovered hosts; prevented variable naming conflicts A......... [ZBX-24500] replaced unsupported arrow functions with simple callback functions due to lack of support for php 7.2 A......... [ZBX-24500] added additional changes that are taken into account in 7.0 version of fix; prevented the ability to switch tls_connect or tls_accept into PSK mode without specifying tls_psk fields using host.update and proxy.update API methods; refactored code A......... [ZBX-24500] added a separate error message for case when PSK encryption is enabled and only one of PSK fields is requested to update using host.massupdate API method A......... [ZBX-24500] fixed undefined index in checkPskOfIdentitiesInAutoregistration; added coalesce for inventory_mode selected with left join; update proxy checkTksPskPairs description; fixed error message in create and update tests for host and proxy tests A......... [ZBX-24500] fixed inability to update tls_psk field for all hosts having the same tls_psk_identity value; fixed inability to update two hosts having the same tls_psk_identity value, when for one of them tls_psk value is changed, and for second one the tls_encryption is disabled; refactored proxy.create and proxy.update API methods; prevented the ability to send unexpected fields for proxy.update API method A......... [ZBX-24500] reverted proposed changes of how to fix inability to update psk fields to all hosts that have the same psk field values A......... [ZBX-24500] fixed displaying of redundant index in parameter path of error message when editing PSK fields of autoregistration; fixed displaying the index of the last object with the same psk fields, instead of first, in PSK error message for hosts and proxies; refactored code A......... [ZBX-24500] host.massupdate validation fails when envoked from host.update A......... [ZBX-24500] fixed undefined variable; moved non db validation above db validation code A......... [ZBX-24500] fixed permission message; fix to allow auditlog changes to default value A......... [ZBX-24500] changed tls fields validation in host.massupdate to throw error when not allowed tls field is set; added tests to host.update and host.massupdate A......... [ZBX-24500] fixed docblock A......... [ZBX-24500] fixed host.update; added host.massupdate tests ...
Showing diff to6e0d8c07c80