Experiencing a 401 Unauthorized Error During Update?

If you're seeing a 401 Unauthorized error when trying to update your Joomla extension, it's likely due to our new two-factor authentication (2FA) security measure for your Download ID.
To resolve this, check your email (Spam folder?) for a message to approve your server or device, or read our detailed blog post here( onlinecommunityhub.nl/best-practice/new-...-extension-downloads) to understand the steps involved. This will guide you through approving your server for future updates.

Will implement Add additional directories

  • Alex Chartier
  • Onderwerp Auteur
  • Offline
Meer
4 maanden 6 dagen geleden #2995 door Alex Chartier
Add additional directories werd gestart door Alex Chartier
Would be valuable if I could add additional directories to search for log files. Not all extensions store them in administrator/logs.

Not critical but a nice to have.

Graag Inloggen deelnemen aan het gesprek.

Meer
4 maanden 5 dagen geleden #2998 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Add additional directories
Hi Alex,

That is doable. Will put it on the todo-feature list.

Thanks,

Ruud

Graag Inloggen deelnemen aan het gesprek.

Meer
4 maanden 4 dagen geleden #3004 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Add additional directories
Hi Alex,
so just had a go on this.

in the version linked above (2.1.0.DEV) you can now configure an extra directory. Files that match the regex in that directory will be prepended with a '+' to avoid confusion when the main directory and the extra directory have files that have the same filename.

Can you test this?

I have it currently installed on my production site, no issues so far (wasn't expecting any :))

regards,
Ruud.

Graag Inloggen deelnemen aan het gesprek.

  • Alex Chartier
  • Onderwerp Auteur
  • Offline
Meer
4 maanden 4 dagen geleden #3005 door Alex Chartier
Beantwoord door Alex Chartier in topic Add additional directories
The directory listing is unwieldy, is there any way to set it up as a tree that can be selected and drilled down? Also, it appears it is only accepting files ending in php versus files that end in .log.

And it would be nice to be able to add multiple extra directories.

All nice to have though.

Graag Inloggen deelnemen aan het gesprek.

Meer
4 maanden 3 dagen geleden #3006 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Add additional directories
Hi Alex,
the purpose of ochLogFiles is to have a simple means to view logfiles created by extensions (that implement the Joomla core provided log functionality).
These files are stored in the directory set in the Joomla Global config.
These logfiles always have a .php extension: this is for a reason: security!

By implementing log functionality via the Joomla framework you get a lot of perks out of the box (e.g. different log levels, log rotation,  integration with the Joomla debugger, etc.) but beside that the code for logging is maintained and secure!

That said: when an extension implements its own log functionality and stores the log in a different directory with a different file extension then this change I made in the new version is able to display the contents of that directory as well.
Behold: ochLogFiles is not a file manager extension (with a tree that can be drilled down), this is beyond what it is for. there are extensions that will do just that (but be careful with extensions like that as they when not implemented correct can pose a security risk).

By default ochlogFiles is configured to display only .php files in a directory, this is a configuration setting and you can change that to also display .log files. just change the configuration setting (Parameters tab)  'Files Regex' to:
Code:
[\.php|\.log]$
This is the setting I currently have: it only displays the current log files, not the rotated (starting with a number):
Code:
^([a-z|A-Z]).+?[\.php|\.log]$
 

Graag Inloggen deelnemen aan het gesprek.

  • Alex Chartier
  • Onderwerp Auteur
  • Offline
Meer
4 maanden 3 dagen geleden #3007 door Alex Chartier
Beantwoord door Alex Chartier in topic Add additional directories
I'm OK with it. Don't spend any more time on it. It was simply a suggestion. I can live with it the way it is/was.

Thanks for your work on it though. Great support!

Graag Inloggen deelnemen aan het gesprek.

Meer
4 maanden 3 dagen geleden #3010 door Ruud van Lent
Beantwoord door Ruud van Lent in topic Add additional directories
Thanks,
Will run some more tests.and release new version

Thanks for the request and testing 👍

Graag Inloggen deelnemen aan het gesprek.