Changeset 35507


Ignore:
Timestamp:
2021-09-28T12:16:22+13:00 (3 years ago)
Author:
kjdon
Message:

OOOPS. so many debugging messages were left in :-(

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/LibraryServlet.java

    r35362 r35507  
    839839    xml_request.setAttribute("baseURL", baseURL);
    840840
    841     logger.error("about to process this message");
    842     logger.error(XMLConverter.getPrettyString(xml_message));
     841//    logger.error("about to process this message");
     842    //   logger.error(XMLConverter.getPrettyString(xml_message));
    843843    Node xml_result = this.recept.process(xml_message);
    844844    encodeURLs(xml_result, response);
     
    975975    private boolean processLoginChanges(HttpServletRequest request, UserContext userContext, PrintWriter out, String baseURL, Map<String, String[]> queryMap, String lang, String output) throws ServletException {
    976976   
    977     logger.error("kk in processLoginChanges");
    978977    //Check if we need to login or logout
    979978    String username = getFirstParam(GSParams.USERNAME, queryMap);
     
    983982    if (logout != null)
    984983    {
    985         logger.error("plc logging out");
    986984        request.logout();
    987985    }
     
    989987    if (username != null && password != null)
    990988    {
    991         logger.error("kk plc u&p not null");
    992989        //We are changing to another user, so log out first
    993990        if (request.getAuthType() != null)
    994991        {
    995         logger.error("plc logging out 2");
    996992        request.logout();
    997993        }
     
    1003999        password = Authentication.hashPassword(password);
    10041000        request.login(username, password);
    1005         logger.error("plc logged in");
    1006         }
     1001            }
    10071002        catch (Exception ex)
    10081003        {
     
    10121007            String siteName = (String) this.recept.getConfigParams().get(GSConstants.SITE_NAME);
    10131008            request.login(siteName + "-" + username, password);
    1014             logger.error("plc logged in site wide");
     1009   
    10151010        }
    10161011        catch (Exception exc)
     
    10391034    private void updateUserContextWithAuthenticatedInfo(HttpServletRequest request, UserContext userContext)
    10401035    {
    1041     logger.error("in updateUserContext");
     1036   
    10421037    //Get the username
    10431038    String user_name = request.getUserPrincipal().getName();
    10441039    userContext.setUsername(user_name);
    1045     logger.error("setting username = "+request.getUserPrincipal().getName());
     1040
    10461041    //Get the groups for the user
    10471042    Document msg_doc = XMLConverter.newDOM();
     
    10811076
    10821077    private boolean runCollectionSecurityCheck(HttpServletRequest request, UserContext userContext, PrintWriter out, String baseURL, String collection, String document, String lang, String output) {
    1083         logger.error("kk in a coll"+collection);
     1078
    10841079    //Get the security info for this collection
    10851080    Document msg_doc = XMLConverter.newDOM();
     
    11171112        if (!found)
    11181113        {
    1119         logger.error("kk current user not allowed to access");
     1114
    11201115        String error_message = "";
    11211116        if (request.getAuthType() == null)
Note: See TracChangeset for help on using the changeset viewer.