Skip to content

[Bug]: xPDOTransport store/retrieve/getTransport/checkPlatformDependencies do not match documentation #295

Backlog

Description

@Ibochkarev

Summary

Several public xPDOTransport/xPDOManager methods do not behave as documented: store() is a stub, retrieve() never downloads, getTransport() ignores arguments, and checkPlatformDependencies() only checks PHP.

Steps to Reproduce

  1. Call $transport->store($path) on a packed transport.
  2. Call xPDOTransport::retrieve($xpdo, "https://example.com/pkg.transport.zip", $dir).
  3. Call $manager->getTransport("my_package", $path).
  4. Call checkPlatformDependencies(["php" => ">=8.1", "extensions" => ["redis"]]).

Expected Behavior

store() writes a package, retrieve() fetches a remote archive, getTransport() accepts a signature and path, and extension requirements are evaluated.

Actual / Observed Behavior

  • src/xPDO/Transport/xPDOTransport.php:701-705: store() always returns false.
  • src/xPDO/Transport/xPDOTransport.php:653-691: retrieve() checks file_exists() and only unpacks a local file.
  • src/xPDO/Om/xPDOManager.php:192-200: getTransport() takes no arguments and does new $transportClass($this).
  • src/xPDO/Transport/xPDOTransport.php:560-575: checkPlatformDependencies() switches only on php; other keys are returned as unsatisfied.

Workarounds: writeManifest() + pack() instead of store(); download the archive before calling retrieve(); construct new \xPDO\Transport\xPDOTransport($xpdo, $signature, $path); check extensions separately.

Environment

xPDO Version: 3.2.0, commit e0d7dfd6c58e38767094aff1bc049d7694a05735
PHP Version: not provided (report based on source review)
Database: not applicable

Logs / Error Output

No exception; results are silently wrong.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions