Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Closed)
 BUG+FIX (3.1sr4): post_info.asp / URL / NT Auth
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

(.)z
New Member

United Kingdom
85 Posts

Posted - 30 January 2001 :  09:21:52  Show Profile  Visit (.)z's Homepage  Send (.)z an AOL message  Send (.)z an ICQ Message  Send (.)z a Yahoo! Message
Adding a forum (type URL) under MySQL gave me the following error
ADODB.Field error '800a0bcd' 

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/technical/snitz/inc_functions.asp, line 657


The SQL being generated is
SELECT TECHNICAL_FORUM_MEMBERS.MEMBER_ID FROM TECHNICAL_FORUM_MEMBERS WHERE M_NAME = 'adf'
but M_NAME is the DB user ID not the NT user ID (adf is my NT user ID).

Looking in inc_functions.asp I can't see how this will ever work, or should the DB username always be passed into inc_functions.asp and its post_info.asp that wont work?

Topic Posting works however and it calls getMemberId(strDBNTUserName) also.

Totally Lost Now - Dont understand

Regards - z - http://www.discuss-online.co.uk/

(.)z
New Member

United Kingdom
85 Posts

Posted - 30 January 2001 :  10:11:24  Show Profile  Visit (.)z's Homepage  Send (.)z an AOL message  Send (.)z an ICQ Message  Send (.)z a Yahoo! Message
Right, I am no longer lost. I have found the bug(s).

In inc_functions.asp, function getMemberID (around line 648), the line
	strSql = strSql & " WHERE M_NAME = '" & fUser_Name & "'"
should be
	strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & fUser_Name & "'"
also, the same is true for the function GetSig (around line 928) which also does not work in NT mode (signatures not inserted when requested). Replace
	strSql = strSql & " WHERE M_NAME = '" & fUser_Name & "'"
should be
	strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & fUser_Name & "'"
Perhaps someone from Snitz could confirm I am not talking total rubbish. I appears to fix the problems though.

Regards - z - http://www.discuss-online.co.uk/
Go to Top of Page

barky81
Junior Member

USA
166 Posts

Posted - 30 January 2001 :  10:32:08  Show Profile
This took me awhile to understand, but see the last few lines of config.asp....

 if strAuthType = "db" then
STRdbntsqlname = "M_NAME"
strAutoLogon ="0"
strNTGroups ="0"
else
STRdbntsqlname = "M_USERNAME"
end if


Note that this code is s'posed to set M_NAME versus M_USERNAME; so yes, I am thinking that all M_*NAME references should be replaced. Right?

Go to Top of Page

(.)z
New Member

United Kingdom
85 Posts

Posted - 30 January 2001 :  10:51:52  Show Profile  Visit (.)z's Homepage  Send (.)z an AOL message  Send (.)z an ICQ Message  Send (.)z a Yahoo! Message
quote:
Note that this code is s'posed to set M_NAME versus M_USERNAME; so yes, I am thinking that all M_*NAME references should be replaced. Right?


Only in a WHERE clase.

However, I am not sure about getMemberNumber() which has a WHERE M_NAME = still in it, because this is called from within inc_functions.asp (chkAccess function) and is passed Request.Cookies(strUniqueID & "User")("Name") as the username which from my investigation is the M_NAME even in NT mode.

Regards - z - http://www.discuss-online.co.uk/

Edited by - (.)z on 30 January 2001 10:53:13
Go to Top of Page

Blade
New Member

66 Posts

Posted - 01 February 2001 :  15:28:49  Show Profile
That fixed the problems with Web Links and signatures in NT mode! Thanks!

I found a problem when viewing the board in Windows 2000 (works fine in Windows NT) the preview window when posting says:

<center><b>< There is no text to preview! ></b></center>

no matter what you have entered, when you click the preview button. This has been a problem even before your fixes. Any ideas?

Edited by - blade on 01 February 2001 15:40:12
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 20 February 2001 :  22:41:54  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
this was addressed in a previouse bugfix wasn't it?

Reinsnitz (Mike)
><)))'>
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page

Blade
New Member

66 Posts

Posted - 21 February 2001 :  09:35:17  Show Profile
I believe so, because it seems to be working now.
Go to Top of Page

barky81
Junior Member

USA
166 Posts

Posted - 21 February 2001 :  09:43:50  Show Profile
quote:

this was addressed in a previouse bugfix wasn't it?



Which? The M_*Name issue, or the "no text to preview" issue?

Or are y'all saying *both* are now fixed?

Thanks,

barky81

Go to Top of Page

Blade
New Member

66 Posts

Posted - 21 February 2001 :  13:49:46  Show Profile
Both are working for me...
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 22 February 2001 :  12:30:26  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
GREAT!!!!

fixed... and closed...

Reinsnitz (Mike)
><)))'>
"Therefore go and make disciples of all nations,..." Matthew 28:19a
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07