Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1903

Directory listing in static/ is forbidden

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.4.7
    • Component/s: None
    • Labels:
      None

      Description

      Some browsers want a directory listing of the /static/ directory. Return a proper 403 Error code instead of a server error.

      2016-01-31 15:52:55,515 [ajp-nio2-8035-exec-10] ERROR StaticServlet - OLAT::ERROR ^%^ N35-E3 ^%^ org.olat.core.servlets ^%^ n/a ^%^ n/a ^%^ n/a ^%^ n/a ^%^ ^%^
      >>>stack of 1.cause::java.io.FileNotFoundException: /fx/lib/fxopenolat-10.4.5-8042-0b549a327a98/static/ (Is a directory)
      -> at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195)
         at java.io.FileInputStream.(FileInputStream.java:138) at org.olat.core.servlets.StaticServlet.deliverFile(StaticServlet.java:195)
         at org.olat.core.servlets.StaticServlet.deliverStatic(StaticServlet.java:173)
         at org.olat.core.servlets.StaticServlet.doGet(StaticServlet.java:112)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
         at org.olat.core.servlets.StaticServlet.service(StaticServlet.java:68)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
         at org.apache.catalina.[...]
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m