Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-219

Internal Server error - include login details of user

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.6.0
    • Component/s: JSPUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2

      Description

      When internal server errors are thrown an email is sent, it would be good if the email address/login details of the user who threw the error could be included with the error details (where there is a user logged in). The information is there as it is in the log file. See e.g. below

      An internal server error occurred on http://researchspace.auckland.ac.nz:

      Date: 30/05/09 19:43
      Session ID: 1D9ED411AD1BDA817AC1717FEFAC9EDA

      – URL Was: http://researchspace.auckland.ac.nz/submit
      – Method: POST
      – Parameters were:

      Exception:
      java.io.IOException: Processing of multipart/form-data request failed. Stream ended unexpectedly
      at org.dspace.app.webui.util.FileUploadRequest.<init>(FileUploadRequest.java:139)
      at org.dspace.app.webui.servlet.SubmissionController.wrapMultipartRequest(SubmissionController.java:1376)
      at org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionController.java:256)
      at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:147)
      at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:98)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
      at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367)
      at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
      at org.dspace.app.webui.util.FileUploadRequest.<init>(FileUploadRequest.java:113)
      ... 24 more
      Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly
      at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:983)
      at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)
      at java.io.InputStream.read(InputStream.java:89)
      at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94)
      at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)
      at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:362)
      ... 26 more

        Attachments

          Activity

            People

            Assignee:
            stuartlewis Stuart Lewis
            Reporter:
            v.newton-wade@auckland.ac.nz Vanessa Newton-Wade
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: