Skip to content

listBackupOfferings API: keyword parameter does not filter results #12466

@RosiKyu

Description

@RosiKyu

problem

The keyword parameter in the listBackupOfferings API is accepted but does not filter results. Regardless of the search term provided, the API returns an empty result set.

versions

ACS 4.20+

The steps to reproduce the bug

  1. Create multiple backup offerings with distinct names (e.g., "test", "test1", "test2")
  2. List all backup offerings - confirms they exist
  3. Attempt to filter using the keyword parameter
  • list backupofferings` -> returns all 3 offerings
(localcloud) 🐱 > list backupofferings 
{
  "backupoffering": [
    {
      "allowuserdrivenbackups": true,
      "created": "2026-01-19T15:01:32+0000",
      "description": "test",
      "externalid": "17fa51d2-8890-481d-9671-c1ba72dfc59b",
      "id": "f88854a3-ebd3-42b7-a05b-a5cedb06b10c",
      "name": "test",
      "provider": "dummy",
      "zoneid": "8be3db01-c7d7-4e87-adad-0e26ee771912",
      "zonename": "ref-trl-10625-k-Mu22-daman-arora"
    },
    {
      "allowuserdrivenbackups": true,
      "created": "2026-01-19T15:01:51+0000",
      "description": "test",
      "externalid": "ce56bc45-3e6b-42fc-bea6-9dd8311c612e",
      "id": "8ae7ba94-2402-4dbb-baa2-438a0ca8499e",
      "name": "test1",
      "provider": "dummy",
      "zoneid": "8be3db01-c7d7-4e87-adad-0e26ee771912",
      "zonename": "ref-trl-10625-k-Mu22-daman-arora"
    },
    {
      "allowuserdrivenbackups": true,
      "created": "2026-01-19T15:02:01+0000",
      "description": "test",
      "externalid": "fbddad55-0563-4a51-a7c7-96dfb23cf8e5",
      "id": "1c4e6d62-541a-4dc7-b4a6-3e5928fa3c25",
      "name": "test2",
      "provider": "dummy",
      "zoneid": "8be3db01-c7d7-4e87-adad-0e26ee771912",
      "zonename": "ref-trl-10625-k-Mu22-daman-arora"
    }
  ],
  "count": 3
}

  • list backupofferings keyword=test -> returns empty

  • list backupofferings keyword=test1 -> returns empty

Image

Expected Behavior

The keyword parameter should filter backup offerings by name, returning offerings that match the search term.

Actual Behavior

The keyword parameter returns empty results regardless of the search term, even when matching offerings exist.

Environment

  • CloudStack version: 4.20+

Additional Information

  • Other filter parameters (id, zoneid, pagesize, page) work correctly
  • The keyword parameter is defined in the API and accepted without error
  • This appears to be a bug in the search criteria implementation in BackupManagerImpl.java

What to do about it?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions