Two bugs in the abort mechanism: 1. POST /api/scan/stop only set state._scan_abort (M365/file abort event) but never touched state._google_scan_abort. Now sets both. 2. _check_abort() inside _run_google_scan imported gdpr_scanner._scan_abort (= state._scan_abort, the M365 event) instead of using the module-level _scan_abort alias (= state._google_scan_abort). This meant the dedicated /api/google/scan/cancel endpoint — which correctly sets _google_scan_abort — was silently ignored by the scan loop. Fixed to use the module-level alias consistently. Also aligned the end-of-scan checkpoint-clear check.
This commit is contained in:
1 parent
7ffd8370f4
commit
c820d6f6db
8 files changed
+28
-3
No files matched your search
@@ -152,6 +152,14 @@ document.addEventListener('DOMContentLoaded', applyI18n);
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- CPR-only mode -->
|
||||
<div class="toggle-row">
|
||||
<span class="toggle-label" style="flex:1">
|
||||
<span data-i18n="m365_opt_cpr_only">CPR-only mode</span><span class="hint-wrap"><span class="hint-icon" onclick="toggleHint(this)">?</span><span class="hint-bubble" data-i18n="m365_opt_cpr_only_hint">Only flag files that contain CPR numbers. Files with only email addresses, phone numbers, faces, or EXIF metadata are ignored.</span></span>
|
||||
</span>
|
||||
<label class="toggle"><input type="checkbox" id="optCprOnly"><span class="toggle-slider"></span></label>
|
||||
</div>
|
||||
|
||||
<!-- Scan for email addresses -->
|
||||
<div class="toggle-row">
|
||||
<span class="toggle-label" style="flex:1">
|
||||
|
||||
Reference in new issue
Block a user