Skip to content

Conversation

@richard67
Copy link
Member

@richard67 richard67 commented May 30, 2021

Pull Request for Issue # .

Summary of Changes

This pull request (PR) adapts the lists of files and folders to be deleted on update in script.php to recent changes:

Testing Instructions

Code review.

Actual result BEFORE applying this Pull Request

Files which have been removed with PR #34191 in the 4.0-dev branch and the update SQL scripts "3.9.27-2021-04-20.sql" which have been added to staging by PR #33212 are not removed on update if they are present.

Expected result AFTER applying this Pull Request

Files which have been removed with PR #34191 in the 4.0-dev branch and the update SQL scripts "3.9.27-2021-04-20.sql" which have been added to staging by PR #33212 are removed on update if they are present.

Documentation Changes Required

None.

@wilsonge
Copy link
Contributor

The tool from PR #25559 used to create the lists adds folder /libraries/vendor/bin because that folder is removed from the builds since PR #34191 has been merged.

bin folder indeed should be removed - we don't really want to be dealing with the symlinks on different installs. Plus tbh just outright not sure for security we want to come close to exposing these binaries anyhow.

That was right for those which have been released before, but the ones which were added after the last Beta 7 don't need to be in the list because we don't support updates between or from nightly builds.

This is correct. Don't bother adding them. In the grand scheme of things it really won't matter.

@richard67 richard67 changed the title [4.0] [WiP] Update files and folder deletion in script.php to recent changes [4.0] Update files and folder deletion in script.php to recent changes May 31, 2021
@richard67 richard67 marked this pull request as ready for review May 31, 2021 07:54
@richard67 richard67 changed the title [4.0] Update files and folder deletion in script.php to recent changes [4.0] [WiP] Update files and folder deletion in script.php to recent changes May 31, 2021
@richard67 richard67 marked this pull request as draft May 31, 2021 08:38
@richard67
Copy link
Member Author

richard67 commented May 31, 2021

Not sure if we can delete the "bin" folder if it contains links which are not removed before by the script because they are not part of any package. I have to test that. See also issue #34298 .

Update: Sorry, was mixing up "bin" with "libraries/vendor/bin". All ok.

@richard67 richard67 changed the title [4.0] [WiP] Update files and folder deletion in script.php to recent changes [4.0] Update files and folder deletion in script.php to recent changes May 31, 2021
@richard67 richard67 marked this pull request as ready for review May 31, 2021 09:00
@brianteeman
Copy link
Contributor

the question on #34290 is still valid even if you were thinking of the wrong folder

@richard67
Copy link
Member Author

the question on #34290 is still valid even if you were thinking of the wrong folder

@brianteeman That's right. It's just nothing I should change with this PR here.

@wilsonge wilsonge merged commit 887e170 into joomla:4.0-dev May 31, 2021
@wilsonge wilsonge added this to the Joomla 4.0 milestone May 31, 2021
@wilsonge
Copy link
Contributor

Thanks!

@richard67 richard67 deleted the 4.0-dev-deleted-files-and-folder-update branch May 31, 2021 19:43
@richard67
Copy link
Member Author

Thanks too, especially to the testers 😆

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.

4 participants