Pierre & Lumière adminmpmcz
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 16:27:33 +00:00
1bad243f5e fix(qualys): strip() defensif sur credentials + extraction enrichie de l erreur Qualys (responseCode + errorMessage + errorResolution + RAW fallback si format inconnu)
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:56:16 +00:00
c77b4b22eb fix(qualys): API 2.0 confirmee (3.0 OTHER_ERROR car endpoint inexistant, 5.0 INVALID_API_VERSION) + body XML + mapping field user-friendly vers nom Qualys (hostname->name, fqdn->dnsHostName, ip->address) - cause racine 401 = mot de passe API expire
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:48:19 +00:00
cadef89c50 fix(qualys): repasse en API 3.0 (5.0 ne supporte pas l objet hostasset, INVALID_API_VERSION). 12+3+1 endpoints qps/rest revenus en 3.0
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:45:38 +00:00
5c402e5b63 fix(qualys): extrait responseCode/errorMessage/errorResolution du XML Qualys dans le message d erreur (au lieu de tronquer 200 chars du XML brut)
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:42:43 +00:00
e7eecf0346 fix(qualys): search_assets_api utilise XML body au lieu de JSON (API 5.0 attend XML, JSON donnait 400). Message d erreur enrichi avec le debut de la reponse
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:39:55 +00:00
37faba382e fix(qualys): migration API 2.0 EOL -> 5.0 (auth refusee en 2.0 INVALID_CREDENTIALS, OK en 5.0). 12+3+1 endpoints qps/rest mis a jour
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:25:10 +00:00
3e3f5618a0 fix(servers/edit): retire hx-disabled-elt (htmx essaie reactiver bouton apres swap, mais form deja remplace -> TypeError htmx-internal-data null)
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:17:23 +00:00
6999fbd736 fix(servers/edit): retire hx-indicator/disinherit (causaient erreur htmx) - garde juste le toggle label Sauvegarder->Sauvegarde... sur le bouton submit qui marche proprement
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:14:55 +00:00
3f8033adbb fix(servers/edit): hx-disinherit='*' sur bouton Annuler (au lieu de la liste explicite qui ne marchait pas)
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:10:08 +00:00
0e4a2384c8 fix(servers/edit): bouton Annuler n hérite plus de hx-indicator/hx-disabled-elt du form (sinon affichait 'Sauvegarde en cours' au clic Annuler)
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:08:25 +00:00
9e2a5d81f4 chore: script populate_zones - rattache serveurs aux 3 zones SANEF (DMZ deja faite, EMV pour hostname *emv*, LAN par defaut sur le reste)
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:04:46 +00:00
785916246f fix(servers): filtre Zone=LAN match aussi zone_id IS NULL (la colonne affiche 'LAN' par defaut quand zone vide) + comparaison case-insensitive sur z.name
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 14:00:59 +00:00
9b0c596f2c fix(servers/edit): dropdown application matche aussi par nom si application_id NULL mais application_name renseigne (cas edge import sans FK)
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 13:58:03 +00:00
5a9e2f78d1 fix(servers/edit + patching): dropdown 'Solution applicative' affiche TOUTES les applications (filtre 'WHERE itop_id IS NOT NULL' retire) - les apps locales sans correspondance iTop apparaissent maintenant
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 13:51:40 +00:00
53144dcf43 chore: script remplit fqdn manquants depuis hostname.domain_ltd (LOWER + strip point initial du domain_ltd)
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 13:49:35 +00:00
c19309fec2 fix(servers/edit): retire le push iTop sur changement application (etait bloquant 10s+ si iTop injoignable) - update local seulement, push iTop dedie via endpoint async a faire si besoin
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 13:46:34 +00:00
4b2a4cb8f2 fix(servers/edit): timeout iTop reduit (3s connect / 10s read au lieu de 30s) + indicateur de chargement htmx visible (bouton change en 'Sauvegarde...' + message en bas du form)
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 13:28:56 +00:00
e8f369817e fix(servers): bulk + edit synchronisent aussi les colonnes text legacy s.environnement et s.domaine (sinon liste affiche valeur obsolete) + script SQL re-sync des serveurs deja desyncs
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 13:18:23 +00:00
1b82440813 fix(servers): bulk + edit comparaisons domain/env/zone case-insensitive (BD mixte RECETTE/Recette/recette) + fallback bulk env_code si serveur sans domain_env_id + log INFO/WARNING + retour msg=bulk_<n_updated_reel>
adminmpmcz pushed to main at adminmpmcz/patchcenter 2026-05-05 13:10:51 +00:00
5d3c07885d feat(servers): drop colonnes legacy (snapshot_required/pre_patch_script/post_patch_script/satellite_host/need_pct) avec migration donnees + recreation views v_servers / v_patchable / v_conformity_todo + adaptation prereq_service et server_detail.html