Details
Description
In order to avoid typing overly long class names into the OODT Web Grid configuration panel, users commonly resort to copy & paste. However, there's a risk of grabbing a trailing space when copying & pasting. Web Grid happily records a long class name as "a.b.c.d.DProductHandler ", along with that trailing space, but the user in unaware since it looks just fine in the HTML-marked up web page.
The problem occurs when Web Grid tries to instantiate such a class. This produces a nice Tomcat error page with a java.lang.ClassNotFoundException; however, the user is still unaware that anything's amiss because the error page is also rendered in HTML and hides the trailing space.
To avoid such time losses in the future, Web Grid should strip spaces from class names that are entered into its config page. It may as well and do that for other items on the config page as well, such as the code bases list.