I've just built the head of the AOLserver tree on Win2k (thanks to Jamie Rasmussen for some great docs and patches to get it working).
I had the nsadmin tcl package working on 3.5 and quite licked the idea of it so want to et it working on v4.
 
out of the box its a no go - it renames ns_db to c_ns_db, and then uses its own definition of ns_db.
I think there's a problem somewhere with the renaming and it ends up loosing c_ns_db  i.e. the real ns_db command and so it can't get much further without it! ;-)
 
A few global replaces in the nsadmin code later so that its not replacing ns_db and commands and  it seems to be largely working, until you get to the really useful DB pages.
 
If I choose 'Get Table Schema' for example a page is built with an HTML select control with the different db pools listed.
The HTML code has the right names for the pools - ok so far.
I choose a pool and the press submit.
 
I immediately get an error page "Database pool 'test ' is not accessible"
 
Note the space after the name "test" I think this is the problem
 
This is generated eventually by a call to _ns_returnnopool.
It seems that when the form is posted some garbled data is being read by the processing page.
 
The following code seems to be at fault so I added a log line just to make sure:
 
proc _ns_getpool {conn poolVar} {
    upvar $poolVar pool
    set pool ""
 
    set form [ns_conn form $conn]
    if {$form != ""} {
     set pool [ns_set get $form "Pool"]
     ns_log debug "_ns_getpool got pool: '$pool'"
    }
    if [string match "" $pool] {
     return 0
    } else {
     return 1
    }
}
 
 
And I see the following (as is) in the server log
 
[06/Jan/2003:15:59:28][1816.3853944][-conn:laptop::0] Debug: _ns_getpool got pool: 'test
 
'
 
instead of getting the string 'test' as the name of the pool, the code is getting 'test0x0D0x0D0x0A'.
which I'm guessing has to be some issue with ns_set
 
 
Anyone seen anythign similar?  Anyone fixed this problem before?  I'm guessing its a WIN32 thing
 
TIA for any help or advice.
 
Cheers,
 
Tim
 
 
 

Tim Moss Chief Technology Architect BrowserAngel
* : [EMAIL PROTECTED]
8 : www.browserangel.com
( : +44 (0) 77 9613 4891

 

Reply via email to