[fixed] excluding hidden files/dir from access testing

Forum rules
Only administrators can post or move items here.
Post Reply
bess
Language Partners
Language Partners
Posts: 282
Joined: Thu Dec 18, 2008 9:37 am
Location: Bretagne

[fixed] excluding hidden files/dir from access testing

Post by bess »

during the installation :
Write permission in destination directory
The HTTP process must be able to write to the destination directory (and to all files and directories beneath it) in order to install files. We do not have write permission to (at least) D:\www\forge2/.git/objects/00/620e7a55aa9b436e7c2e67e9bc2e65e8156229
we shouldn't test all files and directory which names start with a dot :

.htaccess
.htpasswd <- dear anonymous reader: don't be stupid... don't let this file in your web directory
.svn
.git
.directory
....

the quick fix for me was to move the .git directory during the installation.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [Minor] excluding hidden files/dir from access testing

Post by calguy1000 »

for the most part I agree.
However, the .htaccess one prolly should be an exception
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
bess
Language Partners
Language Partners
Posts: 282
Joined: Thu Dec 18, 2008 9:37 am
Location: Bretagne

Re: [Minor] excluding hidden files/dir from access testing

Post by bess »

Having the .htaccess writeable by the php's process is a security flaw (my opinion)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [Minor] excluding hidden files/dir from access testing

Post by calguy1000 »

yes, but during installation, testing for it (if it exists, it should be writable). is another question.

After installation is a different story.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
bess
Language Partners
Language Partners
Posts: 282
Joined: Thu Dec 18, 2008 9:37 am
Location: Bretagne

Re: [Minor] excluding hidden files/dir from access testing

Post by bess »

so, okay for the .htaccess file (as an exception) but for every other files/directory ?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [Minor] excluding hidden files/dir from access testing

Post by calguy1000 »

fixed as described (with the exception).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Closed Issues”