JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #41  
Old 24.07.2017, 06:20
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

Quote:
Originally Posted by Partizan007 View Post
It is true, the Basic HTTP Authentication is broken in the original yetishare code, but it has been fixed and working fine on ezfiles.net

Everything was working before the JDBrowser revision #37363. As a test, I switched JDBrowser back to revision #37243 and JDownloader to revision #37356 in Eclipse, then I added the test ezfiles download link via "Analyse and Add Links", and it worked as it should

Btw, I don't see any reference to basic http authentication in the Eclipse's Console with debug mode on. I would be glad to provide any info that could help to resolve this issue.
because there hasn't been a dedicated plugin for your service, it was only triggered because of file name extensions within url within the DIRECTHTTP plugin. The source for this has has changed with the basic auth rewrite.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]

Last edited by raztoki; 24.07.2017 at 06:24.
Reply With Quote
  #42  
Old 24.07.2017, 06:43
Partizan007
Guest
 
Posts: n/a
Default

The main problem with 'broken' basic http authentication is that in previous releases JD2 was not checking for 401 & WWW-Authenticate in HTTP header and now it does. The ezfiles servers do not send auth challenge in response, but redirect client to a home page if user name and password have not been supplied in a request.

verification in the DefaultAuthenticanFactory class --
Code:
protected boolean requiresAuthentication(Request request) {
        return request.getHttpConnection().getResponseCode() == 401 && request.getResponseHeader(HTTPConstants.HEADER_RESPONSE_WWW_AUTHENTICATE) != null;
    }
as a test only, we can disable check and basic http auth will work again.

Code:
    public Authentication buildAuthentication(Browser browser, Request request) {
       // if (request.getAuthentication() == null && this.requiresAuthentication(request)) {
            if (request.getAuthentication() == null) {
            // final String wwwAuthenticate = request.getResponseHeader(HTTPConstants.HEADER_RESPONSE_WWW_AUTHENTICATE);
            // if (wwwAuthenticate != null) {
            //    final String realm = new Regex(wwwAuthenticate, "realm\\s*=\\s*\"(.*?)\"").getMatch(0);
            //    if (wwwAuthenticate.matches("(?i)^\\s*Basic.*")) {
                    final Authentication ret = this.buildBasicAuthentication(browser, request, realm);
                    this.addAuthentication(ret);
                    return ret;
             //   } else if (wwwAuthenticate.matches("(?i)^\\s*Digest.*")) {
             //       final Authentication ret = this.buildDigestAuthentication(browser, request, realm);
             //       this.addAuthentication(ret);
             //       return ret;
                }
            // }
        // }
        return null;
    }
Anyways, thanks for the attention, it would be great if the host plug-in could be included in the next release.
Reply With Quote
  #43  
Old 24.07.2017, 16:01
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,542
Default

Thanks for the information. So when Basic Auth is set, the website provides the download link, right?
Please send example links and username/password to support@jdownloader.org
then we can add proper support.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #44  
Old 24.07.2017, 17:22
Partizan007
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Jiaz View Post
Thanks for the information. So when Basic Auth is set, the website provides the download link, right?
Please send example links and username/password to support@jdownloader.org
then we can add proper support.
That is correct. I will forward requested info later today. Thank you!
Reply With Quote
  #45  
Old 24.07.2017, 17:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,542
Default

You're welcome
__________________
JD-Dev & Server-Admin
Reply With Quote
  #46  
Old 24.07.2017, 18:41
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,542
Default

Anyone with contact to admin, can tell him to include WWW-Authenticate when not provided. even without 401 header this is allowed according to rfc and JDownloader can then auto send logins that are stored in Settings-Basic Auths... He/She can contact us on support@jdownloader.org for technical information

But a plugin solution of course would be much much better We will include it asap
Would be nice to receive logins so we can check the plugin ourselves.
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 24.07.2017 at 18:45.
Reply With Quote
  #47  
Old 24.07.2017, 18:54
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,542
Default

Update will be available with next update in about 5 mins
__________________
JD-Dev & Server-Admin
Reply With Quote
  #48  
Old 24.07.2017, 19:43
augur augur is offline
DSL Light User
 
Join Date: Feb 2015
Posts: 30
Default

I just saw that updates were available so I updated and without doing anything else (OK I mentally crossed my fingers) I pasted a complete ezfiles link in (path+name) and it added it. This is more than JD2 had ever done before. Yay. It was rather snappy too no crawling for downloads just boom there it is.

I then looked in the plugins section, found the ezfiles.net plugin and added my username/password and it turned a nice green colour. I then went to Basic Authentication and unticked my ezfiles account there. Then I deleted the link I'd added.

With everything setup so it is using only the plugin I copied and pasted the full link and again it added perfectly. Then I set it downloading and it downloaded completely.

happy bunny.
:w00t:

A massive thanks to Jiaz and raztoki for everything they have done.
I said I wasn't crazy.


PS I'll pass on that www-authenticate info.

Last edited by augur; 24.07.2017 at 19:51.
Reply With Quote
  #49  
Old 25.07.2017, 10:25
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,542
Default

Thanks for the feedback!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #50  
Old 03.08.2017, 17:15
ainsborn
Guest
 
Posts: n/a
Default camvault

Finds links from camvault.xyz. A month ago everything worked. Please.
Reply With Quote
  #51  
Old 03.08.2017, 17:27
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,103
Default

Hi ainsborn,
you just randomly posted an issue in a wrong thread which even is located in the wrong forum.
Next time please read our forumrules first, add example urls and include logs.

For now you're lucky as the issue was easy to identify- and example URLs were easy to find - and I've fixed it.
---
[Please read]=>How/when do I get updates?
Read it carefully BEFORE complaining that something would still be not working!
Update cycles depend on your installed JD version!!

---
[Bitte lesen]=>Wie/wann bekomme ich Updates?
Bitte vollständig lesen bevor ihr euch beschwert, dass etwas immernoch nicht funktionieren würde!
Die Updatezyklen variieren je nach installierter JD Version!!


GreeZ pspzockerscene
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #52  
Old 04.10.2022, 18:06
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,103
Default

A user has requested account support for this host once again via private ticket and he also provided an account for testing.
The following features have been added for our next set of CORE-updates:
  • Added (premium) account support
  • Added support to download premium cloud links e.g. /cloud/file/bla
  • Added rate limit prevention

Bitte auf das nächste CORE-Update warten!

Please wait for the next CORE-Update!

Wartest du auf einen angekündigten Bugfix oder ein neues Feature?
Updates werden nicht immer sofort bereitgestellt!
Bitte lies unser Update FAQ! | Please read our Update FAQ!

---
Are you waiting for recently announced changes to get released?
Updates to not necessarily get released immediately!
Bitte lies unser Update FAQ! | Please read our Update FAQ!


-psp-
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 14:14.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.