This commit is contained in:
Laurent Destailleur 2026-06-20 03:27:26 +02:00
parent 62b691ef3c
commit 30c9554e03
3 changed files with 4 additions and 4 deletions

View file

@ -1530,7 +1530,7 @@ class BlockedLog
}
} elseif ($headstring != '') {
// Failed to decrypt the head
throw new Exception("Failed to decode the content of the .end flag ".basename($lockfile)." with the remote obfuscation key, so we can't record the head file so we abort the transaction.");
throw new Exception("Failed to decode the content of the .end flag ".basename($lockfile).", content = '.$line.' (remote obfuscation key = '.$remoteobfuscationkey.'), so we can't record the head file so we abort the transaction.");
}
// If a note has been added to track an anomaly (signature is also different in this case).

View file

@ -443,8 +443,8 @@ function callApiToGetObfuscationKey($idprof1, $registrationnumber, $force = fals
$timeoutconnect = 3;
$timeoutresponse = 3;
dol_syslog("callApiToGetObfuscationKey call remote URL", LOG_DEBUG);
dol_syslog("callApiToGetObfuscationKey call remote URL", LOG_DEBUG, 0, '_dolibarrgetkeyobfuscation');
dol_syslog("callApiToGetObfuscationKey call remote URL idprod1=".dol_sanitizeKeyCode($idprof1), LOG_DEBUG);
dol_syslog("callApiToGetObfuscationKey call remote URL idprod1=".dol_sanitizeKeyCode($idprof1), LOG_DEBUG, 0, '_dolibarrgetkeyobfuscation');
include_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
try {

View file

@ -77,7 +77,7 @@ dolibarr_set_const($db, 'BLOCKEDLOG_REGISTRATION_NAME', 'MyBigCompanyByPHPUnit')
dolibarr_set_const($db, 'BLOCKEDLOG_REGISTRATION_EMAIL', 'mybigcompany@example.com');
dolibarr_set_const($db, 'MAIN_INFO_SIREN', 'phpunit123');
dolibarr_set_const($db, 'MAIN_INFO_SIRET', 'phpunit12312345');
$sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name='blockedlog-1.end'";
$sql = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = 'blockedlog-1.end'";
$db->query($sql);
/**