-
-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Labels
25.11Issues and PRs pertaining to pfSense Plus 25.11Issues and PRs pertaining to pfSense Plus 25.11breaking changeRequires changes that may breaking existing usageRequires changes that may breaking existing usage
Description
Describe the bug
When performing a GET to this endpoint, an error is returned. Adding any of the query parameters (e.g. ?limit=1&offset=0&sort_order=SORT_DESC) makes no difference.
To Reproduce
GET https://firewall/api/v2/diagnostics/config_history/revisions
Expected behavior
A list of revisions to be returned.
Screenshots or Response
{
"code": 500,
"status": "internal server error",
"response_id": "ENDPOINT_RECEIVED_UNEXPECTED_ERROR",
"message": "Call to undefined function RESTAPI\\Models\\get_backups()\n#0 /usr/local/pkg/RESTAPI/Core/Model.inc(849): RESTAPI\\Models\\ConfigHistoryRevision->get_config_history()\n#1 /usr/local/pkg/RESTAPI/Core/Model.inc(1885): RESTAPI\\Core\\Model->get_internal_objects()\n#2 /usr/local/pkg/RESTAPI/Core/Model.inc(1949): RESTAPI\\Core\\Model::read_all()\n#3 /usr/local/pkg/RESTAPI/Core/Endpoint.inc(1129): RESTAPI\\Core\\Model::query()\n#4 /usr/local/pkg/RESTAPI/Core/Endpoint.inc(1068): RESTAPI\\Core\\Endpoint->get()\n#5 /usr/local/www/api/v2/diagnostics/config_history/revisions/index.php(9): RESTAPI\\Core\\Endpoint->process_request()\n#6 {main}",
"data": []
}pfSense Version & Package Version:
- pfSense Version: 25.11
- Package Version v2.7.1
Affected Endpoints:
- URL: /api/v2/diagnostics/config_history/revisions
Additional context
I also tried fetching a specific revision instead of all, but I couldn't find which numbering is used (its not the ID you see when you download the revision, since I tried that).
Metadata
Metadata
Assignees
Labels
25.11Issues and PRs pertaining to pfSense Plus 25.11Issues and PRs pertaining to pfSense Plus 25.11breaking changeRequires changes that may breaking existing usageRequires changes that may breaking existing usage