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

Error when copying from sakai site to desktop: "requested header not found"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.2
    • Component/s: WebDAV
    • Labels:
      None
    • Environment:
      client: w2k pro, or xp pro
      sakai-stable.mit.edu:8030 (sakai 2.1.006, 2.1.003, 1.0)

      Description

      with some MS Windows clients webDAV gives the follwoing error when copying files from sakai to the Windows desktop,
      although it works fine from the Windows desktop to sakai:

      An error ocurred while copying the file. The requested header was not found"

      it turns out that the Windows client (some clients as it seems) is expecting a "last-modifed" header which is not sent by
      Sakai in the GET method. I added the following to "doGet" in legacy/dav/src/java/org/sakaiproject/dav/DavServlet.java

      protected void doGet(HttpServletRequest request,
      HttpServletResponse response)
      throws IOException, ServletException {

      + // Retrieve the resources
      + DirContextSAKAI resources = getResourcesSAKAI();
      +
      + ResourceInfoSAKAI resourceInfo = new ResourceInfoSAKAI(path, resources);
      + if (! resourceInfo.collection)

      { + response.setDateHeader("Last-Modified", resourceInfo.date); + }

      and it worked fine in old 1.0, and 2.1.003 with Goliath and MS Windows (xp and w2k pro). This seems to be specific to
      some Windows versions.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                csev Charles Severance
                Reporter:
                fribeiro Feliz Gouveia
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration