NNTP Bug in 2.72/2.73RC1 [message #27913] |
Fri, 30 September 2005 12:12  |
haitch
 Messages: 2 Registered: September 2005 Location: Australia
Karma: 0
|
Junior Member |
add to buddy list ignore all messages by this user
|
|
New to FudForums, but really liking them. Found a problem with the released 2.72 and 2.73RC1 though. I'm mirroring an NNTP server into the forums. While trying to post any messages into the forums I was getting a stream of "invalid stream file errors". Finally traced it back to two things:
In nntp.inc
1) In the post function the return from Connect is set as $this->exit_handler(0) rather than $this->exit_handler() - this causes the actual nntp error to be hidden.
2) The underlying problem is that the post function doesn't receive the authorization credentials for the server. Looking at packet traces, during posting the nntp server is sent "authinfo user" rather than "authinfo user username", causing a 501 Invalid authorisation" error. Lacking the php knowledge to fix it properly, I've worked around it for now by hardcoding the username/password into the post function.
H.
|
|
|
Re: NNTP Bug in 2.72/2.73RC1 [message #27918 is a reply to message #27913] |
Fri, 30 September 2005 14:44   |
Ilia
 Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
remove from buddy list ignore all messages by this user
|
|
Re #1
This is actually intentional behaviour the error message get written to a log but a script is not terminated. This is done so that when a user via the forum posts a message their response is not broken if syncronization to nntp fails.
Re #2
According to the code in CVS, which is the same as the one you see in 2.7.2 and 2.7.3RC1 the nntp code sents authetication via:
AUTHINFO user [actual_user_name]
FUDforum Core Developer
|
|
|
|
|