Skip to content

leading character chopped off when scanning / #426

@meonkeys

Description

@meonkeys

Device Information (please complete the following information):

  • OS: Ubuntu 22.04.3 LTS 64-bit desktop
  • Deployment: Docker
  • Browser (if relevant): Firefox
  • SIST2 Version: v3.1.4
  • Elasticsearch Version (if relevant) : 7.17.9

Command with arguments
n/a, I used the default docker-compose.yml from here

Only change I made was mounting my Documents folder at /host like so:

/home/user/Documents:/host:ro

Describe the bug
I just noticed the file paths from the root (in the container) are missing the first character (and the leading slash, although that's less important).

Steps To Reproduce
Please be specific!

  1. Go to http://localhost:4090
  2. Click on the icon to the left of Filter path

Expected behavior
List of root folders shown.

Actual Behavior
Paths are missing leading slash and first character. oot/, ost/ and tc/ appear instead of /root/, /host/, and /etc/, for example.

Screenshots
Screenshot from 2023-09-20 18-26-47

Additional context
This also appears to impact viewing files. For example, say I have an image in my search results. If I click on that image to view the original, the path shows up as [JOBNAME]/ost/image.png instead of [JOBNAME]/host/image.png.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingscanScan module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions