Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-31686

Sending email from Worksite where there is a space in the Title results in blank page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Non-Issue
    • Affects Version/s: 11.1
    • Fix Version/s: None
    • Component/s: Worksite Setup
    • Labels:
      None
    • Environment:
      CentOS 7
      Tomcat 8.0.32
      JRE 1.8.0_101
    • Test Plan:
      Hide

      Page should redirect to "Message sent to:" page when an email is sent from a Worksite where there is a space in the title.

      Show
      Page should redirect to "Message sent to:" page when an email is sent from a Worksite where there is a space in the title.

      Description

      When trying to send an email from a Worksite where there is a space in the Title, the email is sent (and received), but the site displays a blank page.

      Looking at the logs, the following error shows:

      ===
      2016-08-18 00:36:41,696 INFO http-nio-8080-exec-1 org.sakaiproject.email.impl.BasicEmailService - Email.sendMail: from: Sakai Administrator <admin@hand13.co.za> subject: DT 100: Test from Sakai to: riaan@dnams.net headerTo

      {to}

      : headerTo

      {cc}

      : headerTo

      {bcc}

      : riaan@dnams.net
      18-Aug-2016 00:36:41.761 WARNING [http-nio-8080-exec-1] org.apache.catalina.connector.Response.sendRedirect Failed to redirect to http://www.hand13.co.za:8080/portal/site/DT 100/tool/20b3d323-0e58-4f47-b7b6-286473d23c9a/results?errortoken=VO5dAAA8GzXBaR9%28%28JlU%28lNc&sakai.tool.placement.id=20b3d323-0e58-4f47-b7b6-286473d23c9a
      java.lang.IllegalArgumentException: Illegal character in path at index 43: http://www.hand13.co.za:8080/portal/site/DT 100/tool/20b3d323-0e58-4f47-b7b6-286473d23c9a/results?errortoken=VO5dAAA8GzXBaR9%28%28JlU%28lNc&sakai.tool.placement.id=20b3d323-0e58-4f47-b7b6-286473d23c9a
      at java.net.URI.create(URI.java:852)
      at org.apache.catalina.connector.Response.sendRedirect(Response.java:1280)
      at org.apache.catalina.connector.Response.sendRedirect(Response.java:1252)
      at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:500)
      at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:138)
      at org.sakaiproject.util.RequestFilter$WrappedResponse.sendRedirect(RequestFilter.java:1607)
      at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:138)
      at org.sakaiproject.portal.util.ByteArrayServletResponse.forwardResponse(ByteArrayServletResponse.java:163)
      at org.sakaiproject.portal.charon.handlers.SiteHandler.doSite(SiteHandler.java:503)
      at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:263)
      at org.sakaiproject.portal.charon.handlers.SiteHandler.doGet(SiteHandler.java:151)
      at org.sakaiproject.portal.charon.handlers.WorksiteHandler.doPost(WorksiteHandler.java:71)
      at org.sakaiproject.portal.charon.SkinnableCharonPortal.doPost(SkinnableCharonPortal.java:1137)
      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.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:467)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      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 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      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:616)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      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)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 43: http://www.hand13.co.za:8080/portal/site/DT 100/tool/20b3d323-0e58-4f47-b7b6-286473d23c9a/results?errortoken=VO5dAAA8GzXBaR9%28%28JlU%28lNc&sakai.tool.placement.id=20b3d323-0e58-4f47-b7b6-286473d23c9a
      at java.net.URI$Parser.fail(URI.java:2848)
      at java.net.URI$Parser.checkChars(URI.java:3021)
      at java.net.URI$Parser.parseHierarchical(URI.java:3105)
      at java.net.URI$Parser.parse(URI.java:3053)
      at java.net.URI.<init>(URI.java:588)
      at java.net.URI.create(URI.java:850)
      ... 38 more
      ===

      I created a copy of the Worsksite with the space in the Title, and removed the space from the title. Retried to send and email from the Worksite without the space in the Title, and the email sent correctly, and the page redirected correctly to the "Message sent to" page.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  riaan@dnams.net Riaan de Wet
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code