Revision 9583
Added by Jing Tao about 8 years ago
MetaCatServlet.java | ||
---|---|---|
687 | 687 |
// if we get here, metacat is configured. If we have not completed the |
688 | 688 |
// second half of the initialization, do so now. This allows us to initially |
689 | 689 |
// configure metacat without a restart. |
690 |
logMetacat.info("MetacatServlet.handleGetOrPost - the _fullyInitailzied value is "+_fullyInitialized); |
|
690 | 691 |
if (!_fullyInitialized) { |
691 | 692 |
initSecondHalf(request.getSession().getServletContext()); |
692 | 693 |
} |
... | ... | |
917 | 918 |
} |
918 | 919 |
PrintWriter out = response.getWriter(); |
919 | 920 |
if ((userName != null) && !userName.equals("public")) { |
921 |
//formatid will be set null here since this is metacat api |
|
922 |
String formatId = null; |
|
920 | 923 |
handler.handleInsertOrUpdateAction(request.getRemoteAddr(), request.getHeader("User-Agent"), response, out, params, userName, |
921 |
groupNames, true, true, null); |
|
924 |
groupNames, true, true, null, formatId);
|
|
922 | 925 |
} else { |
923 | 926 |
response.setContentType("text/xml"); |
924 | 927 |
out.println("<?xml version=\"1.0\"?>"); |
Also available in: Unified diff
If a format id in the system metadata is registered in the xml_catalog table, we will use the schema location for the format id to validate the xml instance;
otherwise, we will use our previous way.