[GH-ISSUE #2307] File transfer: "invalid file name" error on valid filename #1538

Open
opened 2026-05-05 08:12:08 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @laniakea64 on GitHub (Dec 20, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2307

Xubuntu 18.04 64-bit
firejail self build from 5e153e6793

$ firejail --version
firejail version 0.9.57

Compile time support:
        - AppArmor support is enabled
        - AppImage support is enabled
        - chroot support is enabled
        - file and directory whitelisting support is enabled
        - file transfer support is enabled
        - networking support is enabled
        - overlayfs support is enabled
        - private-home support is enabled
        - seccomp-bpf support is enabled
        - user namespace support is enabled
        - X11 sandboxing support is enabled

Steps to reproduce

  1. open a web browser in a firejail --overlay-tmpfs sandbox, go to https://git.hyperbola.info:50100/software/icedove-uxp.git/commit/?id=7339b4e15daff465a2a5ec7448a046773f03261d

  2. Where it says "commit 7339b4e15daff465a2a5ec7448a046773f03261d (patch)", right-click "patch" and save the link target in ~/Downloads. Don't change the filename when saving.

  3. Try to transfer the file out of the sandbox with firejail --get=<pid> ~/Downloads/de870b40934d33a433dfa97beb753ccdb6227693..7339b4e15daff465a2a5ec7448a046773f03261d.patch

Expected results

File should transfer

Actual results

File transfer fails with this error -

Error: invalid file name /home/<me>/Downloads/de870b40934d33a433dfa97beb753ccdb6227693..7339b4e15daff465a2a5ec7448a046773f03261d.patch

Changing the .. in the filename to . gets it working.

Originally created by @laniakea64 on GitHub (Dec 20, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2307 Xubuntu 18.04 64-bit firejail self build from https://github.com/netblue30/firejail/commit/5e153e6793b3eb30ee58cbc8ffaf7d18d37c6dbd ``` $ firejail --version firejail version 0.9.57 Compile time support: - AppArmor support is enabled - AppImage support is enabled - chroot support is enabled - file and directory whitelisting support is enabled - file transfer support is enabled - networking support is enabled - overlayfs support is enabled - private-home support is enabled - seccomp-bpf support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ``` **Steps to reproduce** 1) open a web browser in a `firejail --overlay-tmpfs` sandbox, go to https://git.hyperbola.info:50100/software/icedove-uxp.git/commit/?id=7339b4e15daff465a2a5ec7448a046773f03261d 2) Where it says "commit 7339b4e15daff465a2a5ec7448a046773f03261d (patch)", right-click "patch" and save the link target in `~/Downloads`. Don't change the filename when saving. 3) Try to transfer the file out of the sandbox with `firejail --get=<pid> ~/Downloads/de870b40934d33a433dfa97beb753ccdb6227693..7339b4e15daff465a2a5ec7448a046773f03261d.patch` **Expected results** File should transfer **Actual results** File transfer fails with this error - ``` Error: invalid file name /home/<me>/Downloads/de870b40934d33a433dfa97beb753ccdb6227693..7339b4e15daff465a2a5ec7448a046773f03261d.patch ``` Changing the `..` in the filename to `.` gets it working.
gitea-mirror added the
bug
label 2026-05-05 08:12:08 -06:00
Author
Owner

@rusty-snake commented on GitHub (Apr 1, 2020):

still an issue?

<!-- gh-comment-id:607335839 --> @rusty-snake commented on GitHub (Apr 1, 2020): still an issue?
Author
Owner

@laniakea64 commented on GitHub (Apr 1, 2020):

Yes, still an issue in self build from 5c20f4f53e

<!-- gh-comment-id:607423642 --> @laniakea64 commented on GitHub (Apr 1, 2020): Yes, still an issue in self build from https://github.com/netblue30/firejail/commit/5c20f4f53e647f6d1026f8b134fa364e96923aaf
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1538
No description provided.