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

Request method HEAD is executed by WebDAV-dispatcher

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.2.1, 9.4.0
    • Fix Version/s: 9.4.0
    • Component/s: None
    • Labels:
      None

      Description

      Every HEAD method will be executed by WebDAV dispatcher, which cannot be generalized. You have to distinguish between "normal" HEAD request methods and those which are invoked in WebDAV context. This patch solves that (hope so )

      diff -r 6ff56859b03c src/main/java/org/olat/core/servlets/OpenOLATServlet.java
      --- a/src/main/java/org/olat/core/servlets/OpenOLATServlet.java	Wed Apr 02 17:06:15 2014 +0200
      +++ b/src/main/java/org/olat/core/servlets/OpenOLATServlet.java	Wed Apr 16 15:37:16 2014 +0200
      @@ -226,7 +226,10 @@
       	@Override
       	protected void doHead(HttpServletRequest req, HttpServletResponse resp)
       	throws ServletException, IOException {
      -		webDAVDispatcher.execute(req, resp);
      +		if (req.getPathInfo().contains("/webdav"))
      +			webDAVDispatcher.execute(req, resp);
      +		else
      +			executeUserRequest(req, resp);
       	}
       
       	/**
      

        Attachments

          Activity

            People

            Assignee:
            frentix Frentix
            Reporter:
            stephan Stephan Clemenz
            Tester:
            Florian Gn├Ągi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: