ElkArte Community

Project Support => Support => Topic started by: augras on March 06, 2021, 11:57:51 am

Title: Some packages can't be downloaded
Post by: augras on March 06, 2021, 11:57:51 am
Hi,
I can't dowload some packages with the Packages manager : i get an error.
It's the same thing on my 2 ElKarte.
For example i can't dowload MPAAP or Switch permissions but i can download some other packages.
For MPAAP i get the error :
Although the package has been uploaded to the server, it appears to be empty...
The message is very long but in french on my ElKarte.
For Swith permissions it's an another error :
We have made every effort to find the topic or section you are looking for: it seems to be missing or forbidden for you.
The 2 ElKarte are with the patch1.1.7
Title: Re: Some packages can't be downloaded
Post by: Spuds on March 07, 2021, 03:12:35 pm
You will just have to follow the links on the addon site for those. 
Title: Re: Some packages can't be downloaded
Post by: augras on March 08, 2021, 09:50:35 am
You will just have to follow the links on the addon site for those. 
Hi @Spuds,
i know it but the easier way is to browe the packages directly in the pakages manager and just clic Download.  It worked, "before"... don't remember when.
It is the same thing in 1.1.6 when i uninstall the patch1.1.7.
Title: Re: Some packages can't be downloaded
Post by: Spuds on March 08, 2021, 11:05:30 pm
Nope, nothing new.  

The issue is one of those links is simply a link to the topic, its not even to the attachment so no way the system would download it as its not a file.

The other problem one I do think points at an attachment so I'm not sure why that fails.  It may indicate you have to be logged on to this site, not sure if a guest can download or some other security issue.
Title: Re: Some packages can't be downloaded
Post by: ahrasis on March 09, 2021, 03:16:14 am
Agreed. Unless all of them is PRed to the github, then, only then, it may be possible.

Anyway, our community is still small and there no urgency to put every packages in the github but I think it should be easy to implement in the future.
Title: Re: Some packages can't be downloaded
Post by: augras on March 27, 2021, 11:56:28 am
The other problem one I do think points at an attachment so I'm not sure why that fails.  It may indicate you have to be logged on to this site, not sure if a guest can download or some other security issue.
Hi,
i just logged here and tried to download : it's not enough to download, same error message.
Maybe it will help : the link to download is https://augras.eu/forum_zwii/index.php?action=admin;area=packageservers;sa=download;server=1;section=enhancement;num=16;package=index.php?topic=2407.0;czEjoubSV=100f70NMAuB9Ps27RJsGyK70qkcRAm8X (https://augras.eu/forum_zwii/index.php?action=admin;area=packageservers;sa=download;server=1;section=enhancement;num=16;package=index.php?topic=2407.0;czEjoubSV=100f70NMAuB9Ps27RJsGyK70qkcRAm8X)
Philippe
Title: Re: Some packages can't be downloaded
Post by: Steeley on March 27, 2021, 09:17:46 pm
Do you have to be admin to use that link?
Title: Re: Some packages can't be downloaded
Post by: augras on March 28, 2021, 12:03:49 pm
Hi @Steeley ,
I have to be admin in elkarte to install packages and in fact i'm admin to download.
I took a look to a link that works, for exemple : https://augras.eu/forum_zwii/index.php?action=admin;area=packageservers;sa=download;server=1;section=bbc;num=1;package=elk_bbc_gist.zip;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9 (https://augras.eu/forum_zwii/index.php?action=admin;area=packageservers;sa=download;server=1;section=bbc;num=1;package=elk_bbc_gist.zip;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9)
In this link there is :
Code: [Select]
package=elk_bbc_gist.zip;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9
In the links that doesn't work :
Code: [Select]
package=index.php?topic=2407.0;czEjoubSV=100f70NMAuB9Ps27RJsGyK70qkcRAm8X
No file to download, no attachment to download  : just the topic.
I think the problem is in the link.
I tried some links and each time there is package=file.zip it works, otherwise not.

This kind of link with an attachment file doesn't work no more :
(https://augras.eu/forum_zwii/index.php?action=admin;area=packageservers;sa=download;server=1;section=avatar;num=8;package=index.php?action=dlattach;topic=1849.0;attach=1269;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9)https://augras.eu/forum_zwii/index.php?action=admin;area=packageservers;sa=download;server=1;section=avatar;num=8;package=index.php?action=dlattach;topic=1849.0;attach=1269;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9 (https://augras.eu/forum_zwii/index.php?action=admin;area=packageservers;sa=download;server=1;section=avatar;num=8;package=index.php?action=dlattach;topic=1849.0;attach=1269;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9)
Access forbidden ! And that is normal because i'm not admin on elkarte.net.
But in this case if i'm connected on elkarte.net community and use just a part of the link https://www.elkarte.net/community/index.php?action=dlattach;topic=1849.0;attach=1269;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9 (https://www.elkarte.net/community/index.php?action=dlattach;topic=1849.0;attach=1269;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9) the download works fine.
For these links with an attachment file the first part with "admin..." seems to be the problem.
Title: Re: Some packages can't be downloaded
Post by: ahrasis on March 28, 2021, 12:15:07 pm
I don't think it will work that way, I mean if you try to download via your forum package manager from this forum attachment.

The addons from from github however may be downloadable directly from your forum package manager but not the ones that are attached in this forum.
Title: Re: Some packages can't be downloaded
Post by: augras on March 28, 2021, 12:46:59 pm
I really think it is possible to download an attachment file and there is a problem in the link in the packages manager to do that : even a guest can download an attachment here.

For example the link to download MPAAP is : https://augras.eu/forum_zwii/index.php?action=admin;area=packageservers;sa=download;server=1;section=enhancement;num=16;package=index.php?topic=2407.0;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9 (https://augras.eu/forum_zwii/index.php?action=admin;area=packageservers;sa=download;server=1;section=enhancement;num=16;package=index.php?topic=2407.0;db4b4vRU3L=RmscNaUceJZ1iuBMXV5tTlmu1tSxQNg9)

But there is nothing to download in this link : to download the file it lakes somewhere :

Code: [Select]
action=dlattach;topic=2407.0;attach=6976

But even with this code it doesn't work because i think i try to download as admin on an elkarte where i'm not admin.

It's just to try to make it works better and easier.
Title: Re: Some packages can't be downloaded
Post by: tino on March 28, 2021, 01:55:12 pm
I don’t quite understand what you are trying to achieve, you are using the package manager in a way it was never designed to work.

You either have the package zip available at a url that it can access or you manually upload the file. Accessing an attachment of a post is not something it can do.
Title: Re: Some packages can't be downloaded
Post by: augras on March 28, 2021, 03:00:07 pm
The simple way to install a package is just to press the Download button and go on : if it is possible it will work like that for each packages why not ?
It's not a bug and i was wrong when i opened this topic, but maybe it is possible to make it works ?
Title: Re: Some packages can't be downloaded
Post by: tino on March 28, 2021, 03:58:52 pm
Not easily, if it’s in the addon list the mod author should make sure it works. So comment in their topic it’s not an issue with Elkarte itself.
Title: Re: Some packages can't be downloaded
Post by: Steeley on March 28, 2021, 06:39:12 pm
The simple way to install a package is just to press the Download button and go on : if it is possible it will work like that for each packages why not ?
It's not a bug and i was wrong when i opened this topic, but maybe it is possible to make it works ?

If Red Green were a programmer... :D
Title: Re: Some packages can't be downloaded
Post by: Steeley on March 28, 2021, 07:09:50 pm
Hi @Steeley ,
I have to be admin in elkarte to install packages and in fact i'm admin to download.
...

Back to serious for a moment..  Sorry, I misunderstood your purpose for posting the link, ..

I really think it is possible to download an attachment file and there is a problem in the link in the packages manager to do that : even a guest can download an attachment here.


But even with this code it doesn't work because i think i try to download as admin on an elkarte where i'm not admin.

It's just to try to make it works better and easier.

If I understand what you're attempting to do, I suspect for starters the PM is expecting a file at the link destination, not a pointer to something somewhere else? I haven't dug into the code to see if it's limiting to certain compressed file types, which could also be an issue?