Correcting bug in FieldSearchServlet
The FieldSearchServlet.java file exists in:
fedora-2.2.1\src\java\fedora\server\access\FieldSearchServlet.java
In open the file in an editor and add the following after line 375:
out.flush();
out.close();
The resulting section should look like:
373: out.print(html.toString());
374: out.print("</center>");
375: out.print("</body>");
376: out.flush();
377: out.close();
378: } else {
379: response.setContentType("text/xml; charset=UTF-8");
For convenience, a patched and compiled version is available for download from the attachment link below. Just drop this FieldSearchServlet.class file into your $CATALINA_HOME/WEB-INF/classes/fedora/server/access folder overwriting the one that is already there. Do this after installing Fedora.
Attachments
- FieldSearchServlet.class (24.7 kB) -
Compiled Patched version of the FieldSearchServlet class.
, added by nishen on 09/06/07 11:18:25.
