Commit 6a32df1
committed
[Fix] pass-2 session glob skips legacy .html artifacts; issue #483
[Fix] Three glob-filter sites (_lmd_render_json_list in lmd_alert.sh;
_resolve_latest_session_id and _view_session_list pass 2 in
lmd_session.sh) used session.[0-9]* to enumerate legacy plaintext
sessions and only excluded .tsv./.hits. variants — picking up
stale session.N.html artifacts left by pre-on-demand-HTML code
paths. _parse_session_metadata then slurped multi-MB HTML files
line-by-line searching for FILE HIT LIST markers that never
appear in HTML. Local reproducer with 3 HTML artifacts (one 23 MB,
491k lines): maldet -e list --format json took 12.4s; after fix
0.5s (24x). Filter now excludes *.html in all three sites.
[New] tests/31-json-report.bats: regression test 33 fabricates a
session.NNN.html with embedded "SCAN ID:" / "STARTED:" lines
(pre-fix _parse_session_metadata would parse these and emit as
a report); asserts absence from output. Guards the class — same
filter bug repeated across text + json + latest-resolution paths.
[Change] CHANGELOG + CHANGELOG.RELEASE: v2.0.1 Bug Fixes entry.1 parent a1efba5 commit 6a32df1
File tree
5 files changed
+46
-4
lines changed- files/internals
- tests
5 files changed
+46
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
342 | 349 | | |
343 | 350 | | |
344 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
| 858 | + | |
859 | 859 | | |
860 | 860 | | |
861 | 861 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | 146 | | |
148 | | - | |
| 147 | + | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
| |||
382 | 381 | | |
383 | 382 | | |
384 | 383 | | |
385 | | - | |
| 384 | + | |
386 | 385 | | |
387 | 386 | | |
388 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
0 commit comments