Skip to content

Error 500 on /api/v2/diagnostics/config_history/revisions #836

@robindbe

Description

@robindbe

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

No one assigned

    Labels

    25.11Issues and PRs pertaining to pfSense Plus 25.11breaking changeRequires changes that may breaking existing usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions