joomla-projects / com_localise

forked version of the original com_localise for experimental purposes
GNU General Public License v2.0
24 stars 36 forks source link

Issue setting the inslatation folder field value. #332

Open Valc opened 6 years ago

Valc commented 6 years ago

Steps to reproduce the issue

Create any folder to install Joomla than contain same name than one of the "exclude" list at "installation" field founded at config.xml file. In my case my folder to install Joomla was called "joomla_test" than was matching with one to exclude called "test".

Expected result

Be able to list my renamed "_installation" folder that is not in "exclude" list.

Actual result

The "Installation folder" field to configure does not allow select an option from the list.

System information (as much as possible)

Additional comments

This seems than happens due such as now is configured at config.xml it matches all similar cases. After understand what was happening i try to do this one: exclude="administrator|build|component|cache|images|includes|language|libraries|logs|media|modules|plugins|templates|^test$|tmp|bin|cli|layouts"

And now is working again with the expected result.

To prevent same issue with other cases we can try:

exclude="^administrator$|^build$|^component$|^cache$|^images$|^includes$|^language$|^libraries$|^logs$|^media$|^modules$|^plugins$|^templates$|^test$|^tmp$|^bin$|^cli$|^layouts$"

For me has been odd need to do it by default. Not obvious than catch equal name of folders to exclude have required the use of regular expresions.

Is this the expected behaivor configuring this type of fields or is bugged?

Regards

Valc commented 6 years ago

Nope, this goes out of my control.

Only moddify to "^test$" to solve my issue has been working due it is simply ignoring my regular expresion with a folder name than really does not exists at my Joomla folder.

Now that i have applied regular expresions for all folders cases to ignore, the "installation folder" field is allowing me select "administrator" and others realy presents at my Joomla folder, so, apply regular expresions makes become as included that ones than need be excludeds.