? ? Failure

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
25 Apr 2017

Summary of Changes

Add htaccess and webconfig to the 4.0 root lib folder as proposed here: #15457 (comment)

Documentation Changes Required

Lib folder is not longer be a place for things you can call.

NginX need to include that in the configuration

avatar zero-24 zero-24 - open - 25 Apr 2017
avatar zero-24 zero-24 - change - 25 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Apr 2017
Category Libraries
avatar brianteeman
brianteeman - comment - 25 Apr 2017

On an update to j4 this will automatically replace any existing htaccess or webconfig and presumably any future updated from 4.0 to 4.0.x etc will also overwrite the file.

avatar mbabker
mbabker - comment - 25 Apr 2017

While I agree with the intent of this, it needs to be made very clear with this change that Joomla will by default block any web request into the libraries/ directory. This means:

  • No static assets (CSS, JS, images, fonts, etc. etc.)
  • No direct access scripts (yes I realize people are going to respond with "they should go through index.php and the Joomla app" but not every developer is so irresponsible they can't handle the things that would make most advise to go that route
avatar zero-24
zero-24 - comment - 25 Apr 2017

On an update to j4 this will automatically replace any existing htaccess or webconfig and presumably any future updated from 4.0 to 4.0.x etc will also overwrite the file.

We can also extend the default htaccess file in the root (without explizite adding it as .htaccess to the lib folder?

avatar C-Lodder
C-Lodder - comment - 25 Apr 2017

Apache 2.0-2.2? really?

avatar brianteeman
brianteeman - comment - 25 Apr 2017

@C-Lodder more sites uses apache 2.0 - 2.2 than any other version https://w3techs.com/technologies/details/ws-apache/2/all

avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar brianteeman brianteeman - change - 8 Jun 2017
Milestone Added:
avatar zero-24
zero-24 - comment - 27 Jun 2017

Any news here? Should we go the extend the default htaccess part (IMO can be moved to staging than) or do we stay with the current proposal?

avatar brianteeman
brianteeman - comment - 30 Jul 2017

as nginx is a supported web server what happens

avatar zero-24
zero-24 - comment - 30 Jul 2017

Nothing as thy just ignore these files ;)

avatar brianteeman
brianteeman - comment - 30 Jul 2017

Sorry I wasnt clear. If the user is on nginx (a supported server) how are we going to offer them the same protection.

avatar zero-24
zero-24 - comment - 30 Jul 2017

IMO there is nothing we can do about that on a CMS level. As they do not offer such a configuration file. Same applys to the SEF stuff in our root htaccess / web.config

avatar brianteeman
brianteeman - comment - 30 Jul 2017

Maybe just add it to the relevant documentation then ?

avatar zero-24 zero-24 - change - 30 Jul 2017
The description was changed
avatar zero-24 zero-24 - edited - 30 Jul 2017
avatar zero-24
zero-24 - comment - 30 Jul 2017

I have just included that request in the intial post. Thanks.

avatar zero-24
zero-24 - comment - 13 Aug 2017

@wilsonge can we get a final voice from you here?

avatar wilsonge wilsonge - change - 13 Aug 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-08-13 17:22:47
Closed_By wilsonge
avatar wilsonge wilsonge - close - 13 Aug 2017
avatar wilsonge wilsonge - merge - 13 Aug 2017

Add a Comment

Login with GitHub to post a comment