Skip to content

File manager: clicking the current file in the breadcrumb requests a directory listing for a file (500, empty list) #2602

Description

@fasterplayer

Current Behavior

In the server file manager, when a file is open in the editor (e.g. resources/agora/fxmanifest.lua), clicking the file name itself in the breadcrumb (Files » resources » agora » fxmanifest.lua) navigates to the file list view with the file path as the "directory".

A red toast appears briefly ("Impossible de charger les fichiers ! HTTP request returned status code 500: {"error":"An unexpected error was encountered while processing this request","request_id":"6ed903bf-…"}"), then disappears, and the list shows "No files" (empty table). It happens with every file, not a specific one.

Panel log for that request:

Illuminate\Http\Client\RequestException(code: 500): HTTP request returned status code 500:
{"error":"An unexpected error was encountered while processing this request","request_id":"6ed903bf-bcfb-4062-a3e0-a4dc9…"}
#7 /var/www/html/app/Repositories/Daemon/DaemonFileRepository.php(76): Illuminate\Http\Client\PendingRequest->get()
#8 /var/www/html/app/Models/File.php(207): App\Repositories\Daemon\DaemonFileRepository->getDirectory()
#9 /var/www/html/vendor/calebporzio/sushi/src/Sushi.php(151): App\Models\File->getRows()

So the panel asks Wings to list a directory whose path is actually a file, and Wings answers 500.

Expected Behavior

The last breadcrumb segment (the current file) should either not be a link, or keep the editor open / reload the file. Clicking it should never request a directory listing for a file path.

Steps to Reproduce

  1. Open any server → Files.
  2. Open any file in the editor (e.g. resources/agora/fxmanifest.lua).
  3. In the breadcrumb at the top, click the last segment (the file name).
  4. A 500 toast flashes and the file list is empty ("No files").

Panel Version

1.0.0-beta38

Wings Version

v1.0.0-beta29

Games and/or Eggs Affected

FiveM (not egg-specific: the file manager itself)

Docker Image

Panel: ghcr.io/pelican/panel (1.0.0-beta38)

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.
Image Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions