Repository navigation
Ingest C4All report indexes; fix the multi-file picker hang on Windows - #300
Merged
Merged
Conversation
A C4All C4P/C4M Index.xml is now an evidence source like a Project VIC JSON: every Image/Movie entry is registered from the folders beside the index, carrying MD5, SHA-1, size, times and original path. Several indexes picked together are added as a source each, and every one is sent to the server, not only the first. The evidence pickers allow several files since the RAID change, and on Windows the dialog stopped responding once a file was selected. pywebview shows it on the Flask request thread, which is MTA; it is now shown on an STA thread of its own when several files are allowed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
|
Thanks for this one, the C4All import and the picker fix both look good. CI is red on one test: Can you add Once that's in and windows-smoke is green I'm good to merge. |
The membersSources test copied ARCHIVE_RE by hand and broke when the function began using SPEC_RE; both are now read out of app.js. On Windows, the several-files picker test fakes the STA dialog helper the app now uses there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
C4All ingest
A C4All
C4P Index.xml(pictures) orC4M Index.xml(movies) is now an evidence source, picked or typed on the Ingest screen like a Project VIC JSON, or passed togleapp ingest.gleapp/c4all.py: detects the UTF-16<ReportIndex>root and streams its<Image>/<Movie>entries. Each file is resolved as index folder +path+picture/movieand opened in place. Each entry carries MD5 (hash), SHA-1, size, created/written/accessed (Unix seconds) andfullpathas the original path. Entries that name one exported file become one row, with the other original paths inalt_paths. A missing file is registered withfile not found on disk.case.parse_source_specreturns ac4allsource, andpipeline.ingest_sourcesimports it..xmladded to the evidence picker filter. Several spec files picked together become a source each instead of going to the RAID member check. Every spec file is sent to/api/case/ingest, not only the first (specs[0]).category:0is treated as uncategorized, and any other value is kept as the same code. This mapping is not checked against C4All's own numbering, because the sample indexes only had0.deletedis read and not stored.Picker hang on Windows
Since the RAID change, the
ingestfileandarchivepickers passallow_multiple=True. On Windows the Open dialog then stopped responding as soon as a file was selected. Before that change it did not hang.pywebview 6.2.1 calls
OpenFileDialog.ShowDialog()on the calling thread, which here is a Flask request thread. pythonnet threads are MTA, and the shell dialog expects STA.gleapp/_win_open_dialog.pynow shows the dialog on a .NET STA thread, owned by a hidden top-most form, whenever several files are allowed on Windows. Every other picker is unchanged.The cause is a reading, not proven. An automated single- vs multi-select test pointed that way, but later runs of it were unreliable. The fix was confirmed by hand in a frozen Windows build.
Testing
tests/test_c4all_import.py, all synthetic: picture index with shared files, missing files and a category; movie index; non-C4All XML is rejected..xmlfilter.🤖 Generated with Claude Code