HTTP/2, proxy, multipart e processo di rete separato (M2.6b)
HTTP/2 (src/http2.rs): preface, SETTINGS, HEADERS/CONTINUATION, DATA, WINDOW_UPDATE, PING, RST_STREAM, GOAWAY; HPACK con tabella statica, dinamica e Huffman. Le tabelle sono generate dalla RFC 7541 (src/hpack_tabelle.rs) e validate sui suoi esempi, non trascritte a mano. Ambito dichiarato: una richiesta per connessione, senza multiplexing ne' push. Proxy (src/net.rs): http_proxy/https_proxy/all_proxy/no_proxy, tunnel CONNECT per https, Proxy-Authorization con base64. Provato con un finto proxy locale: forma assoluta per http, CONNECT per https, rifiuto del tunnel riportato. multipart/form-data e text/plain oltre a urlencoded (src/invio.rs): il corpo viaggia col tipo dichiarato, e il test verifica che il confine annunciato nell'intestazione separi davvero le parti che il server riceve. Processo di rete separato (src/bin/mosaic-net.rs): IPC a lunghezza prefissata su stdin/stdout, corpo in base64; il servizio tiene cookie e cache. Il desktop lo usa con --rete-esterna. Sul telefono la rete resta nel processo: un'app sandboxata non avvia figli in modo affidabile. Due difetti trovati dai test e non dalla lettura: - intero() in HPACK mascherava con AND invece di comporre con OR: ogni lunghezza di stringa finiva a zero. Era il GOAWAY dei siti veri. - rustls stringe la mano pigramente: alpn_protocol() era vuoto e si finiva sempre in HTTP/1.1 senza dirlo. Ora l'handshake e' forzato e MOSAIC_DEBUG lo stampa.
This commit is contained in:
1 parent
befb3f289f
commit
cc449a548d
21 files changed
+2222
-33
No files matched your search
@@ -0,0 +1,240 @@
|
||||
//! `enctype` dei formulari (M2.6), provato sul serio: un server locale riceve la
|
||||
//! richiesta e il test guarda il corpo grezzo. Niente internet, CI deterministica.
|
||||
//!
|
||||
//! Il punto non è che il corpo «contenga i campi»: è che il server possa
|
||||
//! *leggerli*, quindi il confine dichiarato nell'intestazione deve essere lo
|
||||
//! stesso che separa le parti nel corpo, e la fine deve essere segnata.
|
||||
|
||||
use std::io::{Read, Write};
|
||||
use std::net::TcpListener;
|
||||
use std::thread;
|
||||
|
||||
use engine::invio::prepara;
|
||||
use engine::net::{Client, Limiti};
|
||||
use engine::{ContenutoPagina, FormState};
|
||||
|
||||
const MODULO: &str = concat!(
|
||||
"<!doctype html><html><body><form method=\"post\" action=\"/ricevi\" enctype=\"multipart/form-data\">",
|
||||
"<input name=\"titolo\"><input name=\"nota\">",
|
||||
"<button type=\"submit\">Invia</button></form></body></html>"
|
||||
);
|
||||
|
||||
/// Server che accetta una richiesta, ne cattura il testo completo e risponde `ok`.
|
||||
fn server_che_riceve() -> (u16, std::sync::mpsc::Receiver<String>) {
|
||||
let ascolto = TcpListener::bind("127.0.0.1:0").expect("porta libera");
|
||||
let porta = ascolto.local_addr().unwrap().port();
|
||||
let (invio, ricevi) = std::sync::mpsc::channel();
|
||||
thread::spawn(move || {
|
||||
if let Some(Ok(mut flusso)) = ascolto.incoming().next() {
|
||||
let mut grezzo = Vec::new();
|
||||
let mut buf = [0u8; 4096];
|
||||
// legge finché la richiesta è completa secondo Content-Length
|
||||
loop {
|
||||
let n = flusso.read(&mut buf).unwrap_or(0);
|
||||
if n == 0 {
|
||||
break;
|
||||
}
|
||||
grezzo.extend_from_slice(&buf[..n]);
|
||||
let testo = String::from_utf8_lossy(&grezzo).to_string();
|
||||
if let Some(testa_corpo) = separa(&testo) {
|
||||
if let Some(lunghezza) = lunghezza_dichiarata(&testo) {
|
||||
if testa_corpo.1.len() >= lunghezza {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
let _ = invio.send(String::from_utf8_lossy(&grezzo).to_string());
|
||||
let risposta =
|
||||
b"HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nContent-Length: 2\r\n\r\nok";
|
||||
let _ = flusso.write_all(risposta);
|
||||
}
|
||||
});
|
||||
(porta, ricevi)
|
||||
}
|
||||
|
||||
fn separa(testo: &str) -> Option<(&str, &str)> {
|
||||
let punto = testo.find("\r\n\r\n")?;
|
||||
Some((&testo[..punto], &testo[punto + 4..]))
|
||||
}
|
||||
|
||||
fn lunghezza_dichiarata(testo: &str) -> Option<usize> {
|
||||
for riga in testo.lines() {
|
||||
let minuscola = riga.to_ascii_lowercase();
|
||||
if let Some(v) = minuscola.strip_prefix("content-length:") {
|
||||
return v.trim().parse().ok();
|
||||
}
|
||||
}
|
||||
None
|
||||
}
|
||||
|
||||
/// Primo elemento con questo nome, in ordine di documento.
|
||||
fn cerca(doc: &engine::Document, nome: &str) -> Option<usize> {
|
||||
(0..doc.node_count()).find(|&i| doc.element_name(i) == Some(nome))
|
||||
}
|
||||
|
||||
/// Nodi `input`/`textarea` con un `name` inviabile.
|
||||
fn campi_di_testo(doc: &engine::Document) -> Vec<usize> {
|
||||
(0..doc.node_count())
|
||||
.filter(|&i| matches!(doc.element_name(i), Some("input") | Some("textarea")))
|
||||
.filter(|&i| doc.attr(i, "name").is_some())
|
||||
.collect()
|
||||
}
|
||||
|
||||
/// Valore di un'intestazione: il nome si confronta senza distinzione di caso,
|
||||
/// il valore si legge dalla riga originale (il confine è sensibile al caso).
|
||||
fn campo(testo: &str, nome: &str) -> String {
|
||||
for riga in testo.lines() {
|
||||
if let Some(punto) = riga.find(':') {
|
||||
if riga[..punto].trim().eq_ignore_ascii_case(nome) {
|
||||
return riga[punto + 1..].trim().to_string();
|
||||
}
|
||||
}
|
||||
}
|
||||
String::new()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn multipart_dichiara_il_confine_e_lo_usa() {
|
||||
let pagina = ContenutoPagina::da_html(MODULO);
|
||||
let form_node = cerca(&pagina.doc, "form").expect("il modulo c'è");
|
||||
|
||||
let mut stato = FormState::default();
|
||||
let campi = campi_di_testo(&pagina.doc);
|
||||
assert_eq!(campi.len(), 2, "due campi di testo");
|
||||
for (i, nodo) in campi.iter().enumerate() {
|
||||
if let Some(chiave) = engine::layout::chiave_del_controllo(&pagina.doc, *nodo) {
|
||||
stato.values.insert(chiave, format!("valore {}", i + 1));
|
||||
}
|
||||
}
|
||||
|
||||
let richiesta = prepara(
|
||||
&pagina.doc,
|
||||
&stato,
|
||||
form_node,
|
||||
Some("http://esempio.test/pagina"),
|
||||
)
|
||||
.unwrap();
|
||||
assert_eq!(richiesta.metodo, "POST");
|
||||
assert_eq!(richiesta.url, "http://esempio.test/ricevi");
|
||||
|
||||
let tipo = richiesta.content_type.clone().expect("tipo dichiarato");
|
||||
let confine = tipo
|
||||
.split("boundary=")
|
||||
.nth(1)
|
||||
.expect("il tipo dichiara il confine")
|
||||
.to_string();
|
||||
assert!(tipo.starts_with("multipart/form-data; boundary="));
|
||||
|
||||
let corpo = richiesta.corpo.clone().expect("corpo presente");
|
||||
// il confine del corpo è quello dichiarato, o il server non sa dove tagliare
|
||||
assert_eq!(
|
||||
corpo.matches(&format!("--{}", confine)).count(),
|
||||
3,
|
||||
"due parti più il terminatore"
|
||||
);
|
||||
assert!(corpo.ends_with(&format!("--{}--\r\n", confine)));
|
||||
assert!(corpo.contains("Content-Disposition: form-data; name=\"titolo\""));
|
||||
assert!(corpo.contains("valore 1"));
|
||||
assert!(corpo.contains("valore 2"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn invio_multipart_arriva_leggibile_al_server() {
|
||||
let pagina = ContenutoPagina::da_html(MODULO);
|
||||
let form_node = cerca(&pagina.doc, "form").unwrap();
|
||||
|
||||
let mut stato = FormState::default();
|
||||
for (i, nodo) in campi_di_testo(&pagina.doc).iter().enumerate() {
|
||||
if let Some(chiave) = engine::layout::chiave_del_controllo(&pagina.doc, *nodo) {
|
||||
stato.values.insert(chiave, format!("riga {}", i));
|
||||
}
|
||||
}
|
||||
|
||||
let (porta, ricevi) = server_che_riceve();
|
||||
let base = format!("http://127.0.0.1:{}", porta);
|
||||
let richiesta = prepara(
|
||||
&pagina.doc,
|
||||
&stato,
|
||||
form_node,
|
||||
Some(&format!("{}/pagina", base)),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let client = Client::new();
|
||||
let risposta = client
|
||||
.post_con(
|
||||
&richiesta.url,
|
||||
richiesta.corpo.as_deref().unwrap_or(""),
|
||||
richiesta.content_type.as_deref().unwrap(),
|
||||
&Limiti::default(),
|
||||
)
|
||||
.expect("la richiesta parte");
|
||||
assert_eq!(risposta.status, 200);
|
||||
|
||||
let ricevuta = ricevi
|
||||
.recv_timeout(std::time::Duration::from_secs(5))
|
||||
.unwrap();
|
||||
let tipo = campo(&ricevuta, "content-type");
|
||||
assert!(
|
||||
tipo.starts_with("multipart/form-data; boundary="),
|
||||
"il server legge il tipo: {}",
|
||||
tipo
|
||||
);
|
||||
let confine = tipo.split("boundary=").nth(1).unwrap().trim().to_string();
|
||||
let corpo = separa(&ricevuta).expect("c'è il corpo").1;
|
||||
assert_eq!(
|
||||
corpo.matches(&format!("--{}", confine)).count(),
|
||||
3,
|
||||
"il confine dichiarato separa davvero le parti"
|
||||
);
|
||||
assert!(corpo.contains("riga 0") && corpo.contains("riga 1"));
|
||||
assert_eq!(
|
||||
lunghezza_dichiarata(&ricevuta),
|
||||
Some(corpo.len()),
|
||||
"Content-Length deve corrispondere al corpo"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn testo_semplice_non_e_urlencoded() {
|
||||
let pagina = ContenutoPagina::da_html(
|
||||
"<html><body><form method=\"post\" action=\"/x\" enctype=\"text/plain\">\
|
||||
<input name=\"a\"></form></body></html>",
|
||||
);
|
||||
let form_node = cerca(&pagina.doc, "form").unwrap();
|
||||
let mut stato = FormState::default();
|
||||
if let Some(nodo) = campi_di_testo(&pagina.doc).first() {
|
||||
if let Some(chiave) = engine::layout::chiave_del_controllo(&pagina.doc, *nodo) {
|
||||
stato
|
||||
.values
|
||||
.insert(chiave, "spazio e & commerciale".to_string());
|
||||
}
|
||||
}
|
||||
let richiesta = prepara(&pagina.doc, &stato, form_node, Some("http://e.test/p")).unwrap();
|
||||
assert_eq!(richiesta.content_type.as_deref(), Some("text/plain"));
|
||||
let corpo = richiesta.corpo.unwrap();
|
||||
// in text/plain non si codifica nulla: il valore arriva com'è
|
||||
assert!(corpo.contains("spazio e & commerciale"));
|
||||
assert!(!corpo.contains('%'));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn urlencoded_resta_il_predefinito() {
|
||||
let pagina = ContenutoPagina::da_html(
|
||||
"<html><body><form method=\"post\" action=\"/x\"><input name=\"a\"></form></body></html>",
|
||||
);
|
||||
let form_node = cerca(&pagina.doc, "form").unwrap();
|
||||
let mut stato = FormState::default();
|
||||
if let Some(nodo) = campi_di_testo(&pagina.doc).first() {
|
||||
if let Some(chiave) = engine::layout::chiave_del_controllo(&pagina.doc, *nodo) {
|
||||
stato.values.insert(chiave, "a b".to_string());
|
||||
}
|
||||
}
|
||||
let richiesta = prepara(&pagina.doc, &stato, form_node, Some("http://e.test/p")).unwrap();
|
||||
assert_eq!(
|
||||
richiesta.content_type.as_deref(),
|
||||
Some("application/x-www-form-urlencoded")
|
||||
);
|
||||
assert_eq!(richiesta.corpo.as_deref(), Some("a=a+b"));
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
//! Proxy HTTP (M2.6), provato sul serio: un server locale fa da proxy e il test
|
||||
//! guarda la richiesta che riceve. Niente internet: l'host di destinazione è
|
||||
//! inventato apposta, così se il client provasse a risolverlo il test fallirebbe.
|
||||
|
||||
use std::io::{Read, Write};
|
||||
use std::net::TcpListener;
|
||||
use std::thread;
|
||||
|
||||
use engine::net::{imposta_proxy, Limiti};
|
||||
|
||||
/// Server che accetta una connessione, cattura la testa della richiesta e
|
||||
/// risponde con lo stato indicato.
|
||||
fn proxy_che_riceve(stato: u16) -> (u16, std::sync::mpsc::Receiver<String>) {
|
||||
let ascolto = TcpListener::bind("127.0.0.1:0").expect("porta libera");
|
||||
let porta = ascolto.local_addr().unwrap().port();
|
||||
let (invio, ricevi) = std::sync::mpsc::channel();
|
||||
thread::spawn(move || {
|
||||
if let Some(Ok(mut flusso)) = ascolto.incoming().next() {
|
||||
let mut buf = [0u8; 4096];
|
||||
let n = flusso.read(&mut buf).unwrap_or(0);
|
||||
let testo = String::from_utf8_lossy(&buf[..n]).to_string();
|
||||
let testa = testo.split("\r\n\r\n").next().unwrap_or("").to_string();
|
||||
let _ = invio.send(testa);
|
||||
let corpo = if stato == 200 { "ciao" } else { "" };
|
||||
let risposta = format!(
|
||||
"HTTP/1.1 {} X\r\nContent-Type: text/html\r\nContent-Length: {}\r\n\r\n{}",
|
||||
stato,
|
||||
corpo.len(),
|
||||
corpo
|
||||
);
|
||||
let _ = flusso.write_all(risposta.as_bytes());
|
||||
}
|
||||
});
|
||||
(porta, ricevi)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn http_attraverso_il_proxy_usa_la_forma_assoluta() {
|
||||
let (porta, ricevi) = proxy_che_riceve(200);
|
||||
imposta_proxy(Some(&format!("http://127.0.0.1:{}", porta)));
|
||||
|
||||
// host inesistente: se il client lo risolvesse, questa richiesta fallirebbe
|
||||
let esito = engine::net::get(
|
||||
"http://esempio-inventato.test/pagina?x=1",
|
||||
&Limiti::default(),
|
||||
);
|
||||
imposta_proxy(None);
|
||||
|
||||
let risposta = esito.expect("la risposta arriva dal proxy");
|
||||
assert_eq!(risposta.status, 200);
|
||||
assert_eq!(risposta.text().unwrap(), "ciao");
|
||||
|
||||
let testa = ricevi
|
||||
.recv_timeout(std::time::Duration::from_secs(5))
|
||||
.unwrap();
|
||||
let prima = testa.lines().next().unwrap_or("");
|
||||
assert_eq!(
|
||||
prima, "GET http://esempio-inventato.test/pagina?x=1 HTTP/1.1",
|
||||
"attraverso un proxy http la richiesta si manda in forma assoluta"
|
||||
);
|
||||
assert!(
|
||||
testa.contains("Host: esempio-inventato.test"),
|
||||
"l'intestazione Host resta quella della destinazione: {}",
|
||||
testa
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn https_apre_il_tunnel_prima_di_parlare() {
|
||||
// il finto proxy rifiuta il tunnel: il client deve dirlo, non fingere
|
||||
let (porta, ricevi) = proxy_che_riceve(403);
|
||||
imposta_proxy(Some(&format!("http://127.0.0.1:{}", porta)));
|
||||
|
||||
let esito = engine::net::get("https://esempio-inventato.test/pagina", &Limiti::default());
|
||||
imposta_proxy(None);
|
||||
|
||||
let errore = esito.expect_err("senza tunnel non c'è risposta");
|
||||
assert!(
|
||||
errore.contains("tunnel") && errore.contains("403"),
|
||||
"l'errore nomina il tunnel e lo stato: {}",
|
||||
errore
|
||||
);
|
||||
|
||||
let testa = ricevi
|
||||
.recv_timeout(std::time::Duration::from_secs(5))
|
||||
.unwrap();
|
||||
let prima = testa.lines().next().unwrap_or("");
|
||||
assert_eq!(
|
||||
prima, "CONNECT esempio-inventato.test:443 HTTP/1.1",
|
||||
"per https il proxy riceve CONNECT sull'host e la porta"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn le_credenziali_del_proxy_finiscono_nell_intestazione() {
|
||||
let (porta, ricevi) = proxy_che_riceve(200);
|
||||
imposta_proxy(Some(&format!("http://tizio:parola@127.0.0.1:{}", porta)));
|
||||
let esito = engine::net::get("http://destinazione.test/", &Limiti::default());
|
||||
imposta_proxy(None);
|
||||
esito.expect("richiesta eseguita");
|
||||
|
||||
let testa = ricevi
|
||||
.recv_timeout(std::time::Duration::from_secs(5))
|
||||
.unwrap();
|
||||
// "tizio:parola" in base64
|
||||
assert!(
|
||||
testa.contains("Proxy-Authorization: Basic dGl6aW86cGFyb2xh"),
|
||||
"le credenziali vanno codificate in base64: {}",
|
||||
testa
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn senza_proxy_la_destinazione_si_risolve_davvero() {
|
||||
// controllo di non-regressione: senza proxy il client risolve l'host e
|
||||
// fallisce, invece di mandare la richiesta a qualcuno
|
||||
imposta_proxy(None);
|
||||
let errore = engine::net::get("http://esempio-inventato.test/", &Limiti::default())
|
||||
.expect_err("l'host non esiste");
|
||||
assert!(
|
||||
errore.contains("risoluzione") || errore.contains("connessione"),
|
||||
"l'errore parla di risoluzione o connessione: {}",
|
||||
errore
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
//! Servizio di rete separato (M2.6), provato sul serio: il client parla con
|
||||
//! `mosaic-net` in un altro processo, e i cookie restano *là*. Il test verifica
|
||||
//! due cose distinte: che la richiesta arrivi davvero dal servizio, e che la
|
||||
//! sessione non sia nel processo che chiama.
|
||||
|
||||
use std::io::{Read, Write};
|
||||
use std::net::TcpListener;
|
||||
use std::path::PathBuf;
|
||||
use std::thread;
|
||||
|
||||
use engine::net::{Client, Limiti};
|
||||
|
||||
/// Server che accetta `quante` connessioni e risponde sempre `ok`, annotando le
|
||||
/// intestazioni ricevute.
|
||||
fn server(quante: usize) -> (u16, std::sync::mpsc::Receiver<Vec<String>>) {
|
||||
let ascolto = TcpListener::bind("127.0.0.1:0").expect("porta libera");
|
||||
let porta = ascolto.local_addr().unwrap().port();
|
||||
let (invio, ricevi) = std::sync::mpsc::channel();
|
||||
thread::spawn(move || {
|
||||
let mut viste = Vec::new();
|
||||
for flusso in ascolto.incoming().take(quante).flatten() {
|
||||
let mut flusso = flusso;
|
||||
let mut buf = [0u8; 4096];
|
||||
let n = flusso.read(&mut buf).unwrap_or(0);
|
||||
viste.push(String::from_utf8_lossy(&buf[..n]).to_string());
|
||||
let _ = flusso.write_all(
|
||||
b"HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nSet-Cookie: prova=1; Path=/\r\nContent-Length: 2\r\n\r\nok",
|
||||
);
|
||||
}
|
||||
let _ = invio.send(viste);
|
||||
});
|
||||
(porta, ricevi)
|
||||
}
|
||||
|
||||
fn servizio() -> PathBuf {
|
||||
PathBuf::from(env!("CARGO_BIN_EXE_mosaic-net"))
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn il_servizio_esegue_le_richieste_in_un_altro_processo() {
|
||||
let (porta, ricevi) = server(1);
|
||||
let client = Client::con_servizio_esterno(&servizio()).expect("servizio avviato");
|
||||
|
||||
let risposta = client
|
||||
.get(
|
||||
&format!("http://127.0.0.1:{}/pagina", porta),
|
||||
&Limiti::default(),
|
||||
)
|
||||
.expect("la risposta arriva dal servizio");
|
||||
assert_eq!(risposta.status, 200);
|
||||
assert_eq!(risposta.text().unwrap(), "ok");
|
||||
|
||||
let viste = ricevi
|
||||
.recv_timeout(std::time::Duration::from_secs(5))
|
||||
.unwrap();
|
||||
assert_eq!(viste.len(), 1);
|
||||
assert!(
|
||||
viste[0].starts_with("GET /pagina HTTP/1.1"),
|
||||
"il servizio manda una richiesta normale: {}",
|
||||
viste[0]
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn i_cookie_restano_nel_servizio_non_nel_chiamante() {
|
||||
let (porta, ricevi) = server(2);
|
||||
let client = Client::con_servizio_esterno(&servizio()).expect("servizio avviato");
|
||||
let limite = Limiti::default();
|
||||
|
||||
client
|
||||
.get(&format!("http://127.0.0.1:{}/primo", porta), &limite)
|
||||
.expect("prima richiesta");
|
||||
client
|
||||
.get(&format!("http://127.0.0.1:{}/secondo", porta), &limite)
|
||||
.expect("seconda richiesta");
|
||||
|
||||
let viste = ricevi
|
||||
.recv_timeout(std::time::Duration::from_secs(5))
|
||||
.unwrap();
|
||||
assert_eq!(viste.len(), 2);
|
||||
// il cookie è tornato al server: è il servizio ad averlo tenuto
|
||||
assert!(
|
||||
viste[1].to_ascii_lowercase().contains("cookie: prova=1"),
|
||||
"la seconda richiesta porta il cookie ricevuto dalla prima: {}",
|
||||
viste[1]
|
||||
);
|
||||
// e non è nel processo chiamante: la sessione non è nostra
|
||||
assert!(
|
||||
client
|
||||
.cookies
|
||||
.borrow()
|
||||
.riga_per(&format!("http://127.0.0.1:{}", porta))
|
||||
.is_empty(),
|
||||
"i cookie non devono stare nel processo dell'interfaccia"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn un_errore_di_rete_torna_come_errore_non_come_pagina_vuota() {
|
||||
let client = Client::con_servizio_esterno(&servizio()).expect("servizio avviato");
|
||||
// porta chiusa di proposito
|
||||
let esito = client.get("http://127.0.0.1:9/", &Limiti::default());
|
||||
let errore = esito.expect_err("la richiesta non può riuscire");
|
||||
assert!(
|
||||
errore.contains("connessione") || errore.contains("rifiutata"),
|
||||
"il motivo arriva dal servizio: {}",
|
||||
errore
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user