jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: Lena on 06.04.2017 08:22:56

Title: Error Code results in deleting complete jdownloads directory
Post by: Lena on 06.04.2017 08:22:56
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]
Title: Re: Error Code results in deleting complete jdownloads directory
Post by: Lena on 08.04.2017 13:16:25
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.
Title: Re: Error Code results in deleting complete jdownloads directory
Post by: ColinM on 09.04.2017 17:16:03
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
Title: Re: Error Code results in deleting complete jdownloads directory
Post by: Arno on 10.04.2017 12:44:40
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"?
Title: Re: Error Code results in deleting complete jdownloads directory
Post by: Lena on 10.04.2017 13:40:58
I attached a screenshot of the settings.
The titles are german. There is the special character ":" in it.

[gelöscht durch Administrator]
Title: Re: Error Code results in deleting complete jdownloads directory
Post by: Arno on 10.04.2017 15:17:59
Okay. Könntest du mir noch ein Beispiel für einen der verwendeten Kategorienamen geben? Gerne auch via PM.
Title: Re: Error Code results in deleting complete jdownloads directory
Post by: Lena on 10.04.2017 16:02:34
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.
Title: Re: Error Code results in deleting complete jdownloads directory
Post by: Arno on 10.04.2017 16:04:46
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.
Title: Re: Error Code results in deleting complete jdownloads directory
Post by: Arno on 10.04.2017 16:10:00
Stop. Scheint doch noch Probleme zu machen Sorry. lass mich das heute abend mal in Ruhe reparieren.
Title: Re: Error Code results in deleting complete jdownloads directory
Post by: Lena on 10.04.2017 16:55:27
Alles klar, dank  Backup bin ich entspannt  ;)
Title: Re: Error Code results in deleting complete... - [Fixed in 3.2.49]
Post by: Arno on 12.04.2017 13:10:06
Okay, the bug is fixed now in jD 3.2.49. Shall be published today.