From fe0c5fb122671a1904c5f586fa344eb066ad1389 Mon Sep 17 00:00:00 2001 From: Peter Spark Date: Sun, 5 Apr 2026 12:17:24 +0000 Subject: [PATCH] docs(runbook): BIT-968 FlexIT deploy drift for ERRSIG 948b0236b852 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add §5.3.1: stack pointing at simplexml_load_file() at _flexit.php:~53 indicates production predates WDMI_UBUNTU 011424e6; document sync path and post-deploy grep/nl checks. Paperclip-Agent: 5d084b36-f38f-42a5-a92a-520005afda4f Paperclip-Issue: BIT-968 Paperclip-Run: a8f4506c-9ecd-4ef3-aa0b-c1e4be92d755 --- docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md b/docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md index b02800a..6a0e93a 100644 --- a/docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md +++ b/docs/RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md @@ -150,6 +150,20 @@ Se a fonte for **URL remota**, usar o padrão do §2 (item 3) com o URL efectivo ./scripts/er-cli.sh list-open --project wdmi-store --q "NAVPN" ``` +#### 5.3.1 Código antigo em produção — `simplexml_load_file()` na linha ~53 (BIT-968) + +- Se o stack no hub ainda mostrar **`simplexml_load_file()`** em **`_flexit.php` (~53)**, o docroot em produção **não** reflecte o Importer endurecido já fundido em **`WDMI_UBUNTU`** (commit **`011424e6`** — *fix(Importer): harden FlexIT XML load for BIT-877 ERRSIG*). +- No ramo actual de **`BitReport.pt/WDMI_UBUNTU.git`**, por volta da linha 53 aparece **`$oXML = false;`**, seguido de **`file_get_contents`** + **`simplexml_load_string(..., LIBXML_NOERROR | LIBXML_NOWARNING)`** — não **`simplexml_load_file()`**. +- **Remediação:** sincronizar `default/Importer/` para `/data/wwwroot/default/Importer/` conforme o [WDMI deploy runbook](https://git.bitreport.pt/BitReport.pt/paperclip/src/branch/main/docs/WDMI_DEPLOY_RUNBOOK.md) (ex.: **`gitea-sync-importer.sh`** a partir de **`WDMI_UBUNTU`**; alinhar com §5.1 / BIT-915). +- **Verificação pós-deploy** no servidor: + +```bash +grep -n simplexml_load_file /data/wwwroot/default/Importer/_flexit.php || echo "OK: no simplexml_load_file in _flexit.php" +nl -ba /data/wwwroot/default/Importer/_flexit.php | sed -n '50,72p' +``` + +- Só depois disto faz sentido tratar **feed/XML inválido** como causa residual (§2–§4). Fechar **BIT-968** / **BIT-920** após deploy **e** ausência de novos eventos **`ERRSIG:948b0236b852`** (ver [RUNBOOK_TRIAGE.md](RUNBOOK_TRIAGE.md)). + ### 5.4 Caso documentado — `wdmi-store` / Flexit (BIT-926) - **Assinatura:** `ERRSIG:033b36032168`