#626 Newsgroups with credentials failing

v1.3.0.38
closed
Dare Obasanjo
Newsgroups (15)
5
2012-09-23
2005-12-01
Anonymous
No

Feed Error:

'Newsgroups\microsoft.private.lhwinfxtap' failed with
error: Credentials property not an instance of
NetworkCredential

I have entered my authentication information and it's
failing with that error. If you need more details feel
free to ask.

Cheers,
Drew

Discussion

  • simone_b
    simone_b
    2005-12-02

    Logged In: YES
    user_id=1211298

    Same problem

     
  • Gordon Watts
    Gordon Watts
    2005-12-18

    Logged In: YES
    user_id=816712

    I needed this too. The bug appears to be in the source
    file NewsHandler.cs, in the routine AsyncGetItemsForFeed.
    The check for redentials looks like:
    if(theFeed.link.StartsWith
    ("news://")){

                    try{
                        Uri
    

    feedUri = new Uri(theFeed.link);

                        foreach
    

    (NntpServerDefinition nsd in this.nntpServers.Values){
    if
    (nsd.Server.Equals(feedUri.Authority)){

    c = this.GetNntpServerCredentials(nsd.Name);
    
    break;
                            }
                        }
    
                    } catch
    

    (UriFormatException){;}

                }else{
                    c =
    

    CreateCredentialsFrom(theFeed);
    }
    For whatever reason, on my system, news urls tend to start
    with nntp -- so the check failes, and the wrong branch is
    taken to create the credentials. If I replace the "news:"
    in the above if statement with "nntp:" then it works.

    I was using the sources that came with the 38 release, not
    out of CVS (that wouldn't build for me -- missing resource
    translators (or similar).

     
  • Gordon Watts
    Gordon Watts
    2005-12-18

    Logged In: YES
    user_id=816712

    There is at least one other place in that file that has
    this if statement (refactor?), but it wasn't hit in my
    subsequent testing.

     
  • Gordon Watts
    Gordon Watts
    2005-12-18

    Logged In: YES
    user_id=816712

    Ops! And the second instance of code is probably dead code
    because it contains a bug -- it loops over nntp servers
    hash, but it should be looping over the Values of the hash
    (as the first one I posted does).

     
  • Dare Obasanjo
    Dare Obasanjo
    2005-12-20

    Logged In: YES
    user_id=24549

    This bug is fixed.