Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1] Aliasing Filesystem classes for installation, updating script.php #42978

Merged
merged 5 commits into from
Mar 10, 2024

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Mar 7, 2024

Pull Request for Issue #42971 .

Summary of Changes

With the refactoring of system calls to the framework filesystem package, I introduced a new error when updating since at the time when script.php is run, the framework class ist not there. This PR changes the namespace of the classes in the finalisation.php to reflect first the framework filesystem package and then to alias those classes for the CMS filesystem package. It also fixes the code in script.php to use the framework code consistently. That should hopefully fix the issue and be compatible pretty much regardless from where to where we upgrade.

Testing Instructions

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@richard67
Copy link
Member

richard67 commented Mar 7, 2024

@Hackwar Does PR #42976 still make sense together with this one here? I assume yes, but maybe you know more.

Update: Ah, I just see this PR contains also the changes of the other one.

@joomdonation
Copy link
Contributor

Could you please also delete the two elements here https://github.com/joomla/joomla-cms/blob/5.0-dev/administrator/components/com_admin/script.php#L575-L576 as I did in in my original PR #42976 ? Thanks !

@joomdonation
Copy link
Contributor

I have tested this item ✅ successfully on 5f35b5d

Tested update from both Joomla 4 and Joomla 5 to the update package provided by this PR, it worked well, no error anymore


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42978.

@richard67 richard67 added this to the Joomla! 5.1.0 milestone Mar 9, 2024
@richard67
Copy link
Member

I have tested this item ✅ successfully on 5f35b5dTested update from both Joomla 4 and Joomla 5 to the update package provided by this PR, it worked well, no error anymore

@joomdonation Have you used Windows or a Linux as server? Would be good if we get another tester using what you haven't used.

@richard67
Copy link
Member

@brianteeman Does your thumbs down reaction on the description of this PR still apply, or is it obsolete after the recent changes? If obsolete: Please remove. If not obsolete: Would you like to comment on the reasons? Thanks in advance.

@joomdonation
Copy link
Contributor

@richard67 I tested using Windows. I also did a careful code review.

@richard67
Copy link
Member

@richard67 I tested using Windows. I also did a careful code review.

@joomdonation Thanks. I did also a careful code review. PR is ok for me. Will see if I can find time to test on Linux.

@richard67
Copy link
Member

I have tested this item ✅ successfully on 5f35b5d

I've tested both live update and upload & update from 4.4.3 and 5.0.3 to the custom update URL or update package created by drone for this PR.

I've also tested that updating from 5.1.0-beta 1 with the PR applied before the update works.

Finally I've done a code review.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42978.

@joomla-cms-bot joomla-cms-bot removed this from the Joomla! 5.1.0 milestone Mar 9, 2024
@richard67
Copy link
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42978.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 9, 2024
@richard67 richard67 added this to the Joomla! 5.1.0 milestone Mar 9, 2024
@bembelimen bembelimen merged commit fba52f5 into joomla:5.1-dev Mar 10, 2024
4 checks passed
@bembelimen
Copy link
Contributor

Thx

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants