docs(runbook): BIT-968 FlexIT deploy drift for ERRSIG 948b0236b852
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
This commit is contained in:
1 parent
eab0fbb1fa
commit
fe0c5fb122
1 file changed
+14
@@ -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`
|
||||
|
||||
Reference in new issue
Block a user