Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leading character chopped off when scanning / #426

Closed
meonkeys opened this issue Sep 21, 2023 · 4 comments
Closed

leading character chopped off when scanning / #426

meonkeys opened this issue Sep 21, 2023 · 4 comments
Labels
bug Something isn't working scan Scan module

Comments

@meonkeys
Copy link

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.

@meonkeys meonkeys added the bug Something isn't working label Sep 21, 2023
@simon987
Copy link
Collaborator

hi, which search backend are you using? (elaticsearch or sqlite)

@meonkeys
Copy link
Author

elaticsearch

@meonkeys
Copy link
Author

meonkeys commented Sep 25, 2023

Huh, interesting: I deleted and re-created my index, this time setting Path to /host under Scanning options for the job. The filter path dialog now looks proper, like I'd expect... showing full directory names under /host (which I've mounted via Docker to ~/Documents on my Docker host).

I did notice all the folder names are lowercased, but so far it seems to work fine.

@simon987 simon987 changed the title leading character chopped off for all paths in filter path dialog leading character chopped off when scanning / Sep 26, 2023
@simon987 simon987 added the scan Scan module label Sep 26, 2023
@simon987
Copy link
Collaborator

Thank you, there is a bug when the scan path is /, should be fixed in 33ae585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working scan Scan module
Projects
None yet
Development

No branches or pull requests

2 participants