DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32011>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32011
[PATCH] buildList in AbstractDatabaseAction generates incorrect parameter list
------- Additional Comments From wchao@yahoo.com 2004-11-02 12:57 -------
I have attached the test case application. Bear in mind that you have to install
a JDBC database driver in Tomcat's common/lib directory and also that you have
to configure web.xml and cocoon.xconf in the WEB-INF directory of the cocoon web
directory. You also need to run the SQL setup scripts in the db subdirectory of
abc. You should unpack abc into the cocoon web directory.
Then try running abc/support/newticket. You will need to log in with username
BigCorp and password secret.
Here is the unified diff (which I will use in the future as well):
--- AbstractDatabaseAction.java~ Fri Jul 9 04:03:11 2004
+++ AbstractDatabaseAction.java Mon Nov 1 21:21:28 2004
@@ -728,6 +728,9 @@
buffer.append(", ");
}
buffer.append(values[i].getAttribute("dbcol"));
+ if (i < length - 1) {
+ buffer.append(", ");
+ }
}
return buffer;
}