Skip to content

Conversation

@richard67
Copy link

@richard67 richard67 commented Nov 10, 2019

Pull Request for Issue #233 .

Summary of Changes

See the title.

Testing Instructions

Verify that applying and reverting a PR which requires the CI server (e.g. PR joomla/joomla-cms#26845) still works without issues.

Important note: Do NOT test with a PR which changes composer dependencies like e.g. PR joomla/joomla-cms#26440. There happens a fatal error which seems to be caused by missing or removed 3rd party libraries. This is the case with and without this PR here, am investigating further.

You need the latest patchtester release https://github.com/joomla-extensions/patchtester/releases/tag/4.0.0-beta2 plus the changes from PR's merged after that release + the changes of this PR here.

You can download a patched patchtester 4.0.0-beta2 with all these changes here: https://test5.richard-fath.de/com_patchtester_4.0.0.beta3-dev-3.zip. This package also contains the change from PR #246 .

@richard67 richard67 changed the title [4.0] [WiP] Use HttpFactory to fetch zip file from CI server [4.0] Use HttpFactory to fetch zip file from CI server Nov 10, 2019
@richard67 richard67 marked this pull request as ready for review November 10, 2019 17:25
Copy link
Collaborator

@roland-d roland-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@richard67 Can you please rebase this to the master branch as the master branch is now the working branch for Patch Tester 4. Thank you.

$result = null;
}

if ($result === null || ($result->code != 200 && $result->code != 310))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@richard67 Please use the functions instead of the magic getter. So $result->getStatusCode()

Folder::create($tempPath);
file_put_contents($zipPath, fopen($serverZipPath, "r"));
// Assign to variable to avlod PHP notice "Indirect modification of overloaded property"
$content = $result->body;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@richard67 Please use (string) $result->getBody() instead of the magic getter

@richard67
Copy link
Author

@roland-d Will do so, but give me a bit time.

@richard67
Copy link
Author

@roland-d Done, see #256 .

@richard67 richard67 deleted the 4.0-dev-use-http-factory-to-fetch-remote-files branch March 21, 2020 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants