Skip to content

Downloads from Search Bar have Incorrect File Path #564

Closed
@generallund

Description

@generallund

Updated to 0.6.8 with a new config.yaml and it looks like downloads attempted from the search bar are attempting to utilize an incorrect path. It seems to be repeating the folder structure for some reason (in this case "LocalMovies/LocalMovies"). If a file is downloaded directly from the list interface (not the search bar) it works fine though. I've pasted the logs below:

2025/04/29 00:25:00 Initializing FileBrowser Quantum (0.6.8-beta)
2025/04/29 00:25:00 Using Config file        : config.yaml
2025/04/29 00:25:00 Auth Methods             : [Password]
2025/04/29 00:25:00 Using existing database  : database.db
2025/04/29 00:25:00 Sources                  : [drivepool: D:\]
2025/04/29 00:25:00 Running at               : https://localhost:60000/
2025/04/29 00:25:01 initializing index: [drivepool]
2025/04/29 00:25:25 Index assessment         : [drivepool] complexity=simple directories=8512 files=109844
2025/04/29 00:25:25 Time spent indexing [drivepool]: 24 seconds
2025/04/29 00:25:33�[32m GET     | 200 | 192.168.1.1:51294 | admin        | 1934ms       | "/api/resources?path=%2FLocalMovies%2F&source=drivepool"�[0m
2025/04/29 00:25:44�[32m GET     | 200 | 192.168.1.1:51294 | admin        | 3ms          | "/api/search?scope=%2FLocalMovies%2F/&query=sev&source=drivepool"�[0m
2025/04/29 00:25:45�[32m GET     | 200 | 192.168.1.1:51294 | admin        | 3ms          | "/api/search?scope=%2FLocalMovies%2F/&query=seve&source=drivepool"�[0m
2025/04/29 00:25:45�[32m GET     | 200 | 192.168.1.1:51294 | admin        | 3ms          | "/api/search?scope=%2FLocalMovies%2F/&query=seven&source=drivepool"�[0m
2025/04/29 00:25:45�[32m GET     | 200 | 192.168.1.1:51294 | admin        | 3ms          | "/api/search?scope=%2FLocalMovies%2F/&query=sevent&source=drivepool"�[0m
2025/04/29 00:25:45�[32m GET     | 200 | 192.168.1.1:51294 | admin        | 3ms          | "/api/search?scope=%2FLocalMovies%2F/&query=sevente&source=drivepool"�[0m
2025/04/29 00:25:45�[32m GET     | 200 | 192.168.1.1:51294 | admin        | 3ms          | "/api/search?scope=%2FLocalMovies%2F/&query=seventee&source=drivepool"�[0m
2025/04/29 00:25:45�[32m GET     | 200 | 192.168.1.1:51294 | admin        | 3ms          | "/api/search?scope=%2FLocalMovies%2F/&query=seventeen&source=drivepool"�[0m
2025/04/29 00:25:51�[31m GET     | 500 | 192.168.1.1:51294 | admin        | 1ms          | "/api/raw?files=drivepool%3A%3A%2FLocalMovies%2F%2FLocalMovies%2FSeventeen%20Again%20(2000).mkv&algo=tar.gz"�[0m
2025/04/29 00:26:43�[32m GET     | 200 | 192.168.1.1:52546 |              | 0ms          | "/files/LocalMovies/"�[0m
2025/04/29 00:26:43�[32m GET     | 200 | 192.168.1.1:52547 | admin        | 1ms          | "/api/usage?source=drivepool"�[0m
2025/04/29 00:26:45�[32m GET     | 200 | 192.168.1.1:52547 | admin        | 1973ms       | "/api/resources?path=%2FLocalMovies%2F&source=drivepool"�[0m
2025/04/29 00:27:16�[32m GET     | 200 | 192.168.1.1:52547 | admin        | 18297ms      | "/api/raw?files=drivepool%3A%3A%2FLocalMovies%2FSeventeen%20Again%20(2000).mkv&algo=tar.gz"�[0m

In case this might be an issue with my config.yaml, I've pasted a redacted version of that below as well:

server:
  numImageProcessors: 4
  socket: ''
  tlsKey: 'key.pem'
  tlsCert: 'cert.pem'
  enableThumbnails: true
  resizePreview: false
  port: 60000
  baseURL: /
  logging:
    - levels: 'info|warning|error'
      apiLevels: ''
      output: stdout
      noColors: false
      json: false
    - levels: 'info|warning|error'
      apiLevels: ''
      output: "filebrowser.log"
      noColors: false
      json: false
  database: database.db
  sources:
    - path: "D:"
      name: drivepool
      config:
        indexingInterval: 0
        disabled: false
        maxWatchers: 0
        neverWatchPaths: null
        ignoreHidden: false
        ignoreZeroSizeFolders: false
        exclude:
          files: null
          folders: null
          fileEndsWith: null
        include:
          files: null
          folders: null
          fileEndsWith: null
        defaultUserScope: ''
        defaultEnabled: true
        createUserDir: false
  externalUrl: 'https://redacted.redacted.com'
  internalUrl: ''
  cacheDir: tmp
  maxArchiveSize: 50
auth:
  tokenExpirationHours: 2
  methods:
    proxy:
      enabled: false
      createUser: false
      header: ''
    noauth: false
    password:
      enabled: true
      minLength: 12
      signup: false
      recaptcha:
        host: ''
        key: ''
        secret: ''
  key: ''
  adminUsername: admin
  adminPassword: redacted
frontend:
  name: Filebrowser Quantum
  disableDefaultLinks: false
  disableUsedPercentage: false
userDefaults:
  stickySidebar: false
  darkMode: true
  lockPassword: false
  locale: en
  viewMode: list
  gallerySize: 3
  singleClick: false
  permissions:
    api: false
    admin: false
    modify: false
    share: false
  showHidden: false
  dateFormat: false
  themeColor: var(--blue)
  quickDownload: true
  disableOnlyOfficeExt: .txt .csv .html .pdf
integrations:
  office:
    url: ''
    secret: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions