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

Cypress System Tests fail when writing configuration.php #43465

Closed
muhme opened this issue May 13, 2024 · 1 comment
Closed

Cypress System Tests fail when writing configuration.php #43465

muhme opened this issue May 13, 2024 · 1 comment

Comments

@muhme
Copy link
Contributor

muhme commented May 13, 2024

Steps to reproduce the issue

Expected result

  • Cypress.based Joomla installation runs without errors, 'Install Joomla' spec is passing
  • configuration.php parameters like $mailer = 'smtp' are set correct
  • configuration.php file mask is still read-only (444)

Actual result

  1) Install Joomla
       Install Joomla:
     CypressError: `cy.task('writeFile')` failed with the following error:

> EACCES: permission denied, open './configuration.php'

System information (as much as possible)

  • seen with local Joomla installations on macOS 14.4.1 and Windows 11
  • does not occur on Linux in Docker container based installation, there is the file mask 777 , which may be another problem

Additional comments

  • the read-only (444) file mask of configuration.php will likely be the cause
  • I will create a PR
muhme added a commit to muhme/joomla-cms that referenced this issue May 13, 2024
Fix for issue joomla#43465 'Cypress System Tests fail when writing configuration.php'
. remember the original file permission
. set 644
. write file
. restore original file permission

additional:
. writing file to ${Cypress.env('cmsPath')}/configuration.php` and no more to 'configuration.php'
. error handle file is not existing
@alikon
Copy link
Contributor

alikon commented May 13, 2024

please test #43466

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

No branches or pull requests

3 participants