Bug 70539 - KNode fails to list of newsgroups from the server
Summary: KNode fails to list of newsgroups from the server
Status: RESOLVED FIXED
Alias: None
Product: knode
Classification: Miscellaneous
Component: general (show other bugs)
Version: 0.7.6
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-15 22:36 UTC by michal
Modified: 2004-02-23 16:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michal 2003-12-15 22:36:52 UTC
Version:           0.7.6 (using KDE 3.1.93 (CVS >= 20031111), compiled sources)
Compiler:          gcc version 3.3.2 (PLD Linux) 
OS:          Linux

When I try to download newsgroups from an NNTP server I see two kinds of behavior.

1. KNode seems to download groups and then displays an error message saying it can't write the groups list. There is also a following message in session log:
knode: WARNING: unable to open /home/misiek/.kde/share/apps/knode/nntp.1/groups reason 5

Note that there is no such dir, but there is quite similar:
/home/misiek/.kde/share/apps/knode/nntp.-1

2. KNode fails immediatelly after trying to download list of groups with message:
Unable to connect:
Operation now in progress

I've tried to remove the account and create it again and I always see one of the above behviors.

Regards
Comment 1 Volker Krause 2004-02-23 16:15:40 UTC
CVS commit by vkrause: 

Don't save accounts before they have a valid id.

CCMAIL: 70539-done@bugs.kde.org


  M +5 -2      knconfigwidgets.cpp   1.99


--- kdepim/knode/knconfigwidgets.cpp  #1.98:1.99
@@ -385,6 +385,8 @@ void KNConfig::NntpAccountListWidget::sl
   KNNntpAccount *acc = new KNNntpAccount();
 
-  if(acc->editProperties(this))
+  if(acc->editProperties(this)) {
     a_ccManager->newAccount(acc);
+    acc->saveInfo();
+  }
   else
     delete acc;
@@ -545,4 +547,5 @@ void KNConfig::NntpAccountConfDialog::sl
   a_ccount->setIntervalChecking(i_nterval->isChecked());
   a_ccount->setCheckInterval(c_heckInterval->value());
+  if (a_ccount->id() != -1) // only save if account has a valid id
   a_ccount->saveInfo();