[IRCServices Coding] XML database download

Mark Hetherington mark at ctcp.net
Thu Mar 14 16:42:23 PST 2002


Having tried various browsers (IE, NetScape, Opera) and OS' (Windows and 
Linux) I am still unable to get a complete XML download from the httpd 
module. Both Opera and IE fail at the same point. Although I can get 
a "correctly" closed page (as in a subset of all records appear) with 
Netscape, not all records are listed (for example, not one of the 
admin/oper nicks are listed in the XML download!). 

Since the import/export option is something that would prove useful in a 
number of scenarios, maybe in addition to the XML feature there could be an 
exporter (either in Services itself or as a seperate program similar to the 
convertdb tools) which would export/import to/from say plain text or CSV 
format. 

In addition to providing a different option for import/export, this would 
help track down exactly what is going wrong in the XML download and which 
records are being missed. 

At present I know that admin and oper listed nicks do not display in the 
XML download. Forbidden and noexpire nicks also seem to not display. There 
are also a large number of other nicks that do not display. Without 
checking every nick in the database I cannot confirm why they are affected. 

There is no channel information at all in the export.

StatServ information is only partial. (two server names that were temporary 
and no longer used appear but no others). I am sure this part was working 
in version 5.0a23 but doesn't now.

I imagine this is all partly down to the fact that the xml output appears 
to get confused part way through (Netscape output follows)...
...
<nickgroupinfo>
<id>266</id>
<nicks count='1'>
<array-element>TamperProof</array-element>
</nicks>
<mainnick>0</mainnick>
<pass>2it_message>Diego</quit_message>
</serverstats>
....

Andrew, let me know if you want a copy of the databases to look into this.

-- 
Mark.