sist2 icon indicating copy to clipboard operation
sist2 copied to clipboard

Only one search result returned within archive file using sqlite; result link gives "Not found"

Open ncalexan opened this issue 1 year ago • 4 comments

Device Information (please complete the following information):

  • OS: Debian 13 (trixie/sid)
  • Deployment: Docker
  • SIST2 Version: https://hub.docker.com/layers/sist2app/sist2/x64-linux/images/sha256-c1c22e375aab5139f170c9ec3a2604e3a9743f61c82f2ca8f915c474ffd04329

Describe the bug I am using the sqlite backend and the published Docker container. I scanned a large RAR archive containing many files, using commands like:

$ file Documents/archive.rar
archive.rar: RAR archive data, v4, os: Win32
$ sist scan ~/Documents -o ./documents.sist2
$ sist2 sqlite-index ./documents.sist2 --search-index search.sist2
$ sist2 web --search-index search.sist2 documents.sist2

When searching in the web interface, it says many results are found but only shows a preview for one result. When I click on the link to that one result, it fails to load, saying "Not found".

I figured I would add some tests for this use case with a synthetic RAR archive only to discover almost nothing in the project has regression tests, so there's no prior art for me to crib from.

ncalexan avatar May 11 '25 15:05 ncalexan

What do the logs say for the scan of the file?

dpieski avatar May 12 '25 14:05 dpieski

With the following test script test_script.txt I get the following log.

Curiously, the hit count seems correct, which is not what I see in the real (non-synthetic) index.

The "Not found" message when drilling into the results remains. Looking at the source, it's clear that extracting files from archives is simply not supported; the path gets handed to Mongoose, which doesn't appear to support nested archives in this manner.

ncalexan avatar May 18 '25 00:05 ncalexan

I have a little more to say about this situation: I think the reason I only see one result is that the front-end coalesces results based on a checksum and it appears that when indexing an archive, every checksum is identical.

ncalexan avatar Jan 11 '26 20:01 ncalexan

If you disable the option in the configuration page do you still encounter the error?

On January 11, 2026 3:27:33 p.m. EST, Nick Alexander @.***> wrote:

ncalexan left a comment (sist2app/sist2#528)

I have a little more to say about this situation: I think the reason I only see one result is that the front-end coalesces results based on a checksum and it appears that when indexing an archive, every checksum is identical.

-- Reply to this email directly or view it on GitHub: https://github.com/sist2app/sist2/issues/528#issuecomment-3735706062 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

shyyio avatar Jan 12 '26 03:01 shyyio