Project

General

Profile

Actions

Bug #16856

open

Filer package does not allow empty File Contents to be submitted, contrary to GUI (and code)

Added by → luckman212 3 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Filer
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
All
Affected Plus Version:
26.03
Affected Architecture:

Description

The Filer package (as of 2026.05.24) says "Leave blank to load an existing file from file system…"

clipboard-202605241430-lryqg.png

However, attempting to do so results in an error from input validation: "The field File Contents is required"

clipboard-202605241429-mikii.png

I thought this might be more complicated to fix, but it turns out the underlying code to handle empty filedata was already there. All that was needed was to remove the <required/> tag from /usr/local/pkg/filer.xml

I made a patch for this which can be applied with System Patches using this URL: https://gist.githubusercontent.com/luckman212/a5a26220c1102efefd99f5d2b22b0326/raw/84a8cedfb577bf3aafc369afa9332cd82b216913/filer.xml.patch

Pull Request at: https://github.com/pfsense/FreeBSD-ports/pull/1442


Files

No data to display

Actions

Also available in: Atom PDF