Uploaded image for project: 'Records Management'
  1. Records Management
  2. RM-2396

Upload record via WebDAV fails with org.alfresco.repo.security.permissions.AccessDeniedException

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: RM 2.2, RM 2.3, RM 2.4
    • Fix Version/s: RM 2.4.1
    • Component/s: File Protocols
    • Labels:
    • Environment:
    • Bug Priority:
      Category 1
    • Sprint:
      RM Sprint 26, Flamebird 9 - The Leader, Flamebird 10 - Apocalypse
    • Story Points:
      3

      Description

      Steps to reproduce:

      1. Log on the Share as admin user;
      2. Create RM site;
      3. Create any category, e.g. webdav;
      4. Create any folder under the category, e.g. f1;
      5. Map WebDAV connection from a client machine (using 'Map network drive' action) to http://172.30.40.148:8080/alfresco/webdav as admin user;
      6. Open the RM site > webdav > f1 directory;
      7. Try to upload any unempty document to the directory, e.g. cifs-B.txt.

      Result: An error occurs (the screenshot and the log are attached):

      17:29:01,566 INFO  [STDOUT] 2012-10-16 17:29:01,565  ERROR [alfresco.webdav.protocol] [http-0.0.0.0-8080-4] java.io.PrintWriter@304998b3
       HTTP Status Code: 403 caused by: org.alfresco.repo.security.permissions.AccessDeniedException: 091643079 Access Denied.  You do not have the appropriate permissions to perform this operation.
              at org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:349)
              at org.alfresco.repo.webdav.WebDAVServlet.service(WebDAVServlet.java:139)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:136)
              at sun.reflect.GeneratedMethodAccessor954.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:103)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
              at $Proxy503.doFilter(Unknown Source)
              at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: org.alfresco.repo.security.permissions.AccessDeniedException: 091643079 Access Denied.  You do not have the appropriate permissions to perform this operation.
              at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:50)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:245)
              at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:211)
              at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:164)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
              at $Proxy291.lock(Unknown Source)
              at org.alfresco.repo.webdav.WebDAVLockService.lock(WebDAVLockService.java:250)
              at org.alfresco.repo.webdav.LockMethod.createLock(LockMethod.java:399)
              at org.alfresco.repo.webdav.LockMethod.executeImpl(LockMethod.java:358)
              at org.alfresco.repo.webdav.WebDAVMethod$2.execute(WebDAVMethod.java:336)
              at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
              at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:278)
              at org.alfresco.repo.webdav.WebDAVMethod.execute(WebDAVMethod.java:344)
              ... 37 more
      Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
              at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:93)
              at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:398)
              at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
              at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
              ... 53 more
      

      8. Refresh Windows Explorer window.

      Result: The empty document is present.

      9. Open the directory in the Share.

      Result: The empty undeclared record is present.

      Expected result: The document should be successfully uploaded at step 7. Its content should not be lost.

      ChristinaSh

        Attachments

        1. alfresco.log
          155 kB
        2. catalina_webdav_multiple_files.out
          354 kB
        3. CouldNotFindItem.png
          CouldNotFindItem.png
          198 kB
        4. Items.png
          Items.png
          144 kB
        5. log.zip
          53 kB
        6. screen1.png
          screen1.png
          354 kB
        7. screen2.png
          screen2.png
          351 kB
        8. screen3.png
          screen3.png
          184 kB
        9. Screen Shot 2017-03-20 at 17.12.19.png
          Screen Shot 2017-03-20 at 17.12.19.png
          246 kB
        10. Screen Shot 2017-03-20 at 17.12.40.png
          Screen Shot 2017-03-20 at 17.12.40.png
          181 kB

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  alfrescoqa Alfresco QA Team (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 4 days Original Estimate - 4 days
                    4d
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 week, 3 days, 6 hours
                    1w 3d 6h

                      Structure Helper Panel