After restoring backup to SEMS server, error when importing customization for Web Email Protection

book

Article ID: 169876

calendar_today

Updated On:

Products

Symantec Products

Issue/Introduction

After an upgrade to SEMS server 3.4.0 or later, customizations for Web Email Protection fail to import with a java error in the Administration logs.

One or more of the following errors or exceptions will appear in the Administration logs in the OMC console:
 
Unhandled exception in OMC: java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
 
EXCEPTION STACK TRACE:
 
java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
 
        at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:495)
        at org.owasp.csrfguard.http.InterceptRedirectResponse.sendRedirect(InterceptRedirectResponse.java:54)
        at com.pgp.web.RequestContextBase.redirect(RequestContextBase.java:555)
        at com.pgp.omc.AdminRequestContext.redirect(AdminRequestContext.java:191)
        at com.pgp.omc.AdminWMCustFileUploadScreen.handleZipFileUpload(AdminWMCustFileUploadScreen.java:628)
        at com.pgp.omc.AdminWMCustFileUploadScreen.doEvent(AdminWMCustFileUploadScreen.java:137)
        at com.pgp.omc.AdminControllerServlet.dispatchEvent(AdminControllerServlet.java:704)
        at com.pgp.omc.AdminControllerServlet.doPost(AdminControllerServlet.java:452)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at com.pgp.web.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:43)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:79)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
        at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:877)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1524)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1480)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)
 
  failed to upload file:java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
 
  copyAdditionalHtmlFileToApp: java.io.FileNotFoundException: /tmp/processWebMessenger/original/advanced/[RandomGUID]/[CustomizationFile].html (No such file or directory)  
 
  /tmp/processWebMessenger/wm/build.xml:253: Directory /var/www/html/wm/advanced/[RandomGUID] creation was not successful for an unknown reason

Cause

The restore process may change the permissions on the /var/www/html/wm/ folder and all sub folders to root. The owner should be the tomcat user and not the root user on those folders.

 

Environment

Upgraded SEMS 3.4.x

Resolution

Because this fix requires changes to the server's file system, please contact Symantec Support for assistance in resolving this issue.

Attachments