Revision 5107
Added by daigle over 15 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
2705 | 2705 |
String[] groupnames) { |
2706 | 2706 |
|
2707 | 2707 |
Logger logMetacat = Logger.getLogger(MetaCatServlet.class); |
2708 |
DBConnection dbConn = null; |
|
2709 |
int serialNumber = -1; |
|
2708 |
|
|
2710 | 2709 |
String docid = params.get("docid")[0]; |
2711 | 2710 |
if (docid.startsWith("urn:")) { |
2712 | 2711 |
try { |
... | ... | |
2740 | 2739 |
out.println("<error>"); |
2741 | 2740 |
out.println(e.getMessage()); |
2742 | 2741 |
out.println("</error>"); |
2743 |
} finally { |
|
2744 |
// Retrun db connection to pool |
|
2745 |
DBConnectionPool.returnDBConnection(dbConn, serialNumber); |
|
2746 |
} |
|
2742 |
} |
|
2743 |
// finally { |
|
2744 |
// // Retrun db connection to pool |
|
2745 |
// DBConnectionPool.returnDBConnection(dbConn, serialNumber); |
|
2746 |
// } |
|
2747 | 2747 |
} |
2748 | 2748 |
|
2749 | 2749 |
/** |
... | ... | |
3659 | 3659 |
logMetacat.debug("MetaCatServlet.handleSetAccessAction - ForceReplicationHandler created: " + frh.toString()); |
3660 | 3660 |
|
3661 | 3661 |
} |
3662 |
successList.addElement("MetaCatServlet.handleSetAccessAction - successfully added individual access for doc id: " + docList[0]); |
|
3663 |
|
|
3662 | 3664 |
if (params.get("forwardto") != null) { |
3663 | 3665 |
try { |
3664 | 3666 |
RequestUtil.forwardRequest(request, response, params); |
Also available in: Unified diff
Add success message to metacat response for setaccess action