Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-47034

WebDAV service returns HTTP error 409 instead of error code 413 for the FileSizeException

    Details

      Description

      1. Set dl.file.max.size=1024000 in portal-ext.properties.
      2. Login to Liferay Portal as Admin, under Document and Media Create a folder “test folder”
      3. Click on downward arrow on the folder to obtain WebDAV link.
      4. Add the log level "com.liferay.portal.webdav.WebDAVServlet" for all in Server Admin of Control Panel.
      5. Start Windows, make sure OS has installed patch from Microsoft by following below link:
      http://www.microsoft.com/downloads/details.aspx?FamilyId=17C36612-632E-4C04-9382-987622ED1D64
      6. Map Network Drive to Windows 7 with WebDAV link obtained in step 3.
      7. Signing in as administrator in the pop up sign in window.
      8. Upload file over the size limit(1000KB) (used file has size of 1100KB in this case)
      9. Repeat steps 5-7 with Mac OS (Connect to WebDAV by going to Finder->Go->Connect to Server)

      The log will be as the followings:
      ###
      09:01:56,743 WARN [http-bio-9080-exec-8][DLWebDAVStorageImpl:724] com.liferay.portlet.documentlibrary.FileSizeException: theme.zip
      at com.liferay.portlet.documentlibrary.store.DLStoreImpl.validate(DLStoreImpl.java:673)
      at com.liferay.portlet.documentlibrary.store.DLStoreUtil.validate(DLStoreUtil.java:778)
      ....
      09:01:56,813 INFO [http-bio-9080-exec-8][WebDAVServlet:151] PUT /api/secure/webdav/guest/document_library/folder/theme.zip 409
      ###

      Please refer to 409 and 413 status explanation from http://msdn.microsoft.com/en-us/library/aa142868%28v=exchg.65%29.aspx

      Expected Behavior:
      The console return with error code 413 indicate the file size issue instead of error code 409 which represent version conflict.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lu.liu Lu Liu
                Reporter:
                hai.yu Hai Yu
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 20 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1