plesk / plesk/api-php-lib

Site getAll is only returning one item

Open
#163 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
157
Forks
79
PR merge metrics
No merged PRs in 30d

Description

Running $client->site()->getAll(); only seems to return one item and it appears to always be the last item. If I add a filter for a specific ID then that item is returned so I know there are more items in my plesk instance.

The protocol version returned in the response is 1.6.9.1.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the site()->getAll() entry point and reproduce the request against a Plesk instance using protocol version 1.6.9.1. Trace how the returned items are parsed and confirm that the completed behavior returns every site, not only the last one; add or update coverage if the repository provides a suitable test path.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.