For the next week, the jabberd 1.4 team will accept code patches that fix known bugs in the code (NO NEW FEATURES!). Please send any patches to [EMAIL PROTECTED] before the end of the day on Wednesday, October 15.
I'm very pleased to see some life on this! (Nothing against 2.0, but there are some critical issues in 1.4.x that until now needed manual patching with posts from the mailing list).
I think you managed to get most of the changes, though there is one that you might want to add: it has to do with mapping case in xdb storage files. This is to avoid problems when users try to log in with their username capitalized differently than when they created the account.
The patch attached below is a crude solution to the problem. I've been using it for quite some time now on my servers, but I am not sure if it is the best way to solve the problem. Someone who knows the codebase better should probably look this over.
-Ralph
diff --exclude=CVS -uNr jabber-1.4.3/jsm/modules/mod_xml.c
myjabber-1.4/jsm/modules/mod_xml.c
--- jabber-1.4.3/jsm/modules/mod_xml.c 2002-02-08 02:44:17.000000000 -0500
+++ myjabber-1.4/jsm/modules/mod_xml.c 2003-06-19 11:29:18.000000000 -0400
@@ -164,6 +164,15 @@
log_debug("mod_xml","handling %s request for user %s",ns,jid_full(m->packet->to));
+ /* Ensure username is lowercase, else <xdb> will fail. */
+ {
+ char *username;
+ for (username = m->packet->to->user; *username; username++) {
+ *username = tolower(*username);
+ }
+ jid_set(m->packet->to, m->packet->to->user, JID_USER);
+ }
+
/* get the foreign namespace */
xns = xdb_get(m->si->xc, m->packet->to, ns);
