Skip to content

Conversation

@degobbis
Copy link
Contributor

@degobbis degobbis commented Jul 7, 2020

Summary of Changes

A better way to set the FTP credentials for the view
1. we should define the property in the view in which we want to fill it later
2. we should use the set method from the base class to set a value
3. the marking as a reference is no longer necessary

After further research it seems that the variable $this->ftp holding the return value of the setCredentialsFromRequest() method is not used and / or directly overwritten in the associated view with the FTP credentials from the model.

Testing Instructions

Code review

1. should we define the property in the view in which we want to fill it later
2. we should use the set method from the base class
3. the marking as a reference is no longer necessary
@degobbis degobbis changed the title [4.0] A better way to set the FTP credentials for the view [4.0] [cosmetics] Remove variable type mixing in display controller / view Jul 11, 2020
@chmst
Copy link
Contributor

chmst commented Jul 20, 2020

I have tested this item ✅ successfully on e57dc08

Code inspect, looks good.


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

@matrikular
Copy link
Contributor

I have tested this item ✅ successfully on e57dc08

Looks good on code review.


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jul 20, 2020
@wilsonge
Copy link
Contributor

wilsonge commented Aug 4, 2020

I want a practical test of this too please as it covers Joomla Update. Code review is good enough for one test but not both

@richard67
Copy link
Member

I want a practical test of this too please as it covers Joomla Update. Code review is good enough for one test but not both

@degobbis Please provide testing instructions for a practical test. Thanks in advance.

@degobbis
Copy link
Contributor Author

degobbis commented Aug 5, 2020

@richard67 @wilsonge
For testing we need an older NightlyBuild to exerzise an Joomla update, where I can get one?

@degobbis
Copy link
Contributor Author

degobbis commented Aug 5, 2020

While playing through the test instruction I noticed that a test is very complex and not easy to do.

Since the FTP credentials were implemented as a workaround for the wwwrun problem on web servers, such a server is necessary for a reliable test.

Already the installation of Joomla on such a server is the first hurdle.

At least two installations are necessary, because resetting the installation after the update is not so easy and could falsify the result because of the file permissions.

Do we have professionals who could test this?

@richard67
Copy link
Member

There is another PR dealing with Joompaupdate Upload & Update and FTP: #28029 . Maybe the author, @twister65 can help with testing here? Or maybe @Quy can do?

@Quy Quy removed the RTC This Pull Request is Ready To Commit label Aug 10, 2020
@wilsonge wilsonge merged commit c724d91 into joomla:4.0-dev Jan 2, 2021
@wilsonge
Copy link
Contributor

wilsonge commented Jan 2, 2021

OK Doesn't look like we'll get testers :/ Thanks

@wilsonge wilsonge added this to the Joomla 4.0 milestone Jan 2, 2021
@degobbis degobbis deleted the jdev/ftpCredentialsInView branch January 14, 2023 17:47
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.

7 participants