News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Error Code results in deleting complete jdownloads directory

Started by Lena, 06.04.2017 08:22:56

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lena

Over the last year I stumbled upon an error that deleted my complete jdownload directory... multiple times. This is what happens:

I have a couple of subcategories that I want to copy (via batch) to another category. Also the access level gets a change via the batch. All in one work step. The new subcategories are created in the right category, but the access level is the old one and I have an error code at the bottom of all categories (see screenshot). The access level for the entry with the error code is the one, that I wanted through the batch.

When I delete the category with the error code my complete jdownloads directory gets deleted from the server. I have an up-to-date backup and continue to work at the weekend from home with a faster internet connection.

I think this error category is created when I want to copy AND change the access level with the batch in one step.

I did some simple copy jobs to other categories and no error was created. I still work with jdownloads x.46 but want to update on the weekend.

I hope you can bring some sense into this error ;-)
The batch would make my life a lot easier  :D

Lena

[gelöscht durch Administrator]
  •  

Lena

I deleted the entry directly in the database without any problems. I still wonder where it came from and how deleting it in the backend can have such dangerous results like deleting the whole server folder of jdownloads.
  •  

ColinM

Hmm! Challenging.
Will see if I can reproduce but it does sound dramatic! So might just do a code walk to look for vulnerabilities.
I suspect you are right as the original batch code did not handle Access or other Permissions.  There may be a possible clash as normally the access is taken from the parent.

What I would do is to copy the subcats and their decedant downloads using file zilla or some other ftp utility, and then do an auto monitor.  Actually I am not a fan of the 'batch' items as the Joomla! infrastructure of Access, Permissions, Tags and so on has become more involved.
Colin
Colin M
  •  

Arno

I will also check later today this problem. Maybe has the new category not really a name at the end from the process. See your error message. So when you try to delete it afterwards, the path is still the root path. So we must check why you get the error. Which language use you for the category titles? And what for settings use you in the jD configuration on the Tab for "Folders and Files"?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Lena

I attached a screenshot of the settings.
The titles are german. There is the special character ":" in it.

[gelöscht durch Administrator]
  •  

Arno

Okay. Könntest du mir noch ein Beispiel für einen der verwendeten Kategorienamen geben? Gerne auch via PM.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Lena

Aufbau:
Orchester
- Trompete
-- Trompete: A
-- Trompete: B
-- Trompete: C etc.

- Posaune
-- Posaune: A
-- Posaune: B
-- etc.

Der Kopiervorgang war Trompete: A bis Trompete: Z in ein weiteres Orchester, wo die Unterkategorie "Trompete" schon bestand.
  •  

Arno

Bitte kopiere die entpackte unten stehende Datei in diesen Ordner: /administrator/components/com_jdownloads/controllers/
und überscheibe das Original. Versuche es anschließend erneut mit der Batchverarbeitung. Lösche aber keine Kategorien mehr welche eine Fehlermeldung bringen sollten. Sollte aber jetzt wieder funktionieren. Sorry für die Umstände.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

Stop. Scheint doch noch Probleme zu machen Sorry. lass mich das heute abend mal in Ruhe reparieren.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Lena

  •  

Arno

Okay, the bug is fixed now in jD 3.2.49. Shall be published today.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •