No Code Attached Yet bug
avatar trogladyte
trogladyte
21 Oct 2024

Steps to reproduce the issue

Brand new install of 5.2

Expected result

Directories 755
Files 644

Actual result

Directories and files 777

System information (as much as possible)

FPA at https://forum.joomla.org/viewtopic.php?f=834&t=1012790#p3733254

Additional comments

My web hosts replied to my query about this:
"I believe I have found the cause of the issue you are having. I am assuming you installed the Joomla files using the zip archive at /home/wwwckde/public_html/Joomla_5.2.0-Stable-Full_Package.zip. I used the zipinfo command to analyze the metadata of the files in the archive and it appears the 777 permissions are from the archive itself. For example this is the output when filtering for the README.txt file. The section "-rwxrwxrwx " is the equivalent of 777 permissions:

[wwwckde@migration public_html]$ zipinfo Joomla_5.2.0-Stable-Full_Package.zip | grep README.txt
-rwxrwxrwx 3.0 unx 5275 tx defN 24-Oct-11 07:24 README.txt

It appears that the file system is simply preserving the file permissions from the zip file. I would suggest using these commands to correct the permissions as soon as the files are extracted."

avatar trogladyte trogladyte - open - 21 Oct 2024
avatar trogladyte trogladyte - change - 21 Oct 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 21 Oct 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Oct 2024
avatar Webdongle
Webdongle - comment - 21 Oct 2024

Unable to replicate on a Hosting server. It only happens to me when I install on localhost on a windows OS pc.


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

avatar brianteeman
brianteeman - comment - 21 Oct 2024

I can confirm this serious bug with 5.2
5.1.4 is fine

avatar richard67
richard67 - comment - 21 Oct 2024

4.4.9 is fine, too. Issue is related to the build environment, not an issue with the build script.

avatar Webdongle
Webdongle - comment - 21 Oct 2024

hmm
Just unpacked J5.2.0 on a subdomain and folders were set 705. And files 777

avatar brianteeman
brianteeman - comment - 22 Oct 2024

doesnt matter what caused the problem - the fact is this is a serious issue that must be resolved asap @SniperSister

avatar SniperSister
SniperSister - comment - 23 Oct 2024

The JSST is aware of the issue, plan is to ship a 5.2.1 with correct permissions.

avatar Quy Quy - change - 23 Oct 2024
Labels Added: bug
avatar Quy Quy - labeled - 23 Oct 2024
avatar richard67
richard67 - comment - 24 Oct 2024

As far as I could see this issue affects only new installations of 5.2.0 stable.

Updated installations do not have it as the updater fixes the permissions to 644 for files and 755 for folders (file extract.php). This applies to sites updated from e.g. 5.1.4 to 5.2.0 stable as well as sites updated from 5.2.0 stable to 5.2.1-dev nightly of today. So with the next update also current new installations should be fixed.

This just to share the info. I do not say that it's not an issue.

avatar Webdongle
Webdongle - comment - 24 Oct 2024

So how difficult is it to copy 5.2.0 to 5.2.1, fix the way it is packaged and present a 5.2.1 full zip with a 5.2.1 update?
Is it just a mater of a few lines of code or is it hours of work?

avatar richard67
richard67 - comment - 24 Oct 2024

I'm not a 5.2. release manager so it's not on me. But I think you can also fix it by using the Reinstall Core Files button in the Joomla Update Component.

avatar richard67
richard67 - comment - 24 Oct 2024

I mean the "Reinstall Joomla! core files" button. It is shown in the update component after searching for updates using the "CHeck for Updates" button. It fixes permission at least for the files (but not the folders, it seems).

avatar brianteeman
brianteeman - comment - 24 Oct 2024

it is not a simple task

avatar richard67
richard67 - comment - 26 Oct 2024

Those who have ssh access to their host can also fix it on the command line when having changed directory to their Joomla root directory:

find ./ -type f ! -name ".htaccess" -exec chmod 644 {} \;
find ./ -mindepth 1 -type d -exec chmod 755 {} \;
chmod 600 ./configuration.php

(On certain shared hosts you might have to adjust the mode values to your needs.)

avatar Webdongle
Webdongle - comment - 26 Oct 2024

But that doesn't fix the problem though.

avatar richard67
richard67 - comment - 26 Oct 2024

But that doesn't fix the problem though.

Sure, but it's a workaround for those who can do it.

avatar trogladyte
trogladyte - comment - 26 Oct 2024

Even easier if you have Akeeba Admin Tools - just click "Fix permissions". But, like using SSH, it's not a fix, just a repair.


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

avatar Webdongle
Webdongle - comment - 26 Oct 2024

Even easier if you have Akeeba Admin Tools - just click "Fix permissions". But, like using SSH, it's not a fix, just a repair.

Professional not core

avatar richard67 richard67 - change - 1 Nov 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-11-01 07:58:40
Closed_By richard67
avatar richard67 richard67 - close - 1 Nov 2024
avatar richard67
richard67 - comment - 1 Nov 2024

Closing as having a pull request. Please test #44379 . Thanks in advance.

avatar brianteeman
brianteeman - comment - 1 Nov 2024

#44379 does not resolve this specific issue

avatar richard67
richard67 - comment - 1 Nov 2024

#44379 does not resolve this specific issue

@brianteeman Have you checked that PR again? I have added a fix procedure to script.php last night.

Add a Comment

Login with GitHub to post a comment