fix logs client

This commit is contained in:
test
2026-08-31 10:10:30 +02:00
parent c88decaf42
commit b3c0fd2c29
14 changed files with 130 additions and 18 deletions
+5
View File
@@ -113,6 +113,11 @@ plugin_urbackup/
- The asset tab now shows a "This asset hosts the UrBackup server" block with links to the hosted servers (always visible, even when the asset is also a linked client)
- Server save validates the host link (unknown/disabled itemtype or missing item resets the link)
- Added it_IT/de_DE/en_GB translations (2 new strings) and recompiled locales
- Fixed the plugin right check on the server form and internal tabs (`Session::haveRight``Profile::canCurrentUser`), so API username/password become editable right after plugin installation without re-login
- Client logs: fixed the log level column (API returns `loglevel`, now mapped to ERROR/WARNING/INFO/DEBUG); show a clear warning when the client is not found by name instead of the misleading "No client logs available"
- Fixed the inverted IP lookup JOIN (`glpi_networknames``glpi_ipaddresses`) so the IP column in Linked/Missing clients is correct
- Made the missing/unlinked clients queries server-scoped (`plugin_urbackup_servers_id`) and the API data session cache key unique per asset (itemtype+id)
- `server_test.ajax.php`: entity-aware `check()` authorization; added `public/js/urbackup.js` (registered via `ADD_JAVASCRIPT`) that sends the `X-Glpi-Csrf-Token` header on plugin AJAX POSTs; `dropdown_host.ajax.php` now requires READ right
### 0.7.2
- UrBackup on Computer is now configurable: new `enable_computer` setting on the plugin configuration page (previously always enabled, hardcoded)