Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-562

[smb][tests] SmbAccessDenied when doing setLastModified on dir

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: None
    • Environment:

      Maven 3.2.5, Java 7u76, Windows 7 (x64, german)

      Description

      While running the smb test against my local windows laptop all tests pass besides one. The setLastModified() on the directory fails.

      I have seen in some code comments, that others noticed that too. So it is not clear if that operation is never supported or not in specific conditions. If it is generally impossible, then the capability could be removed.

      org.apache.commons.vfs2.FileSystemException: Could not set the last modified timestamp of "smb://SUB\Eckenfel:***@eckenfels02/C$/ws/asf/commons-vfs2-project-trunk/core/target/test-classes/test-data/read-tests/dir1".
              at org.apache.commons.vfs2.provider.DefaultFileContent.setLastModifiedTime(DefaultFileContent.java:210)
              at org.apache.commons.vfs2.test.LastModifiedTests.testSetLastModified(LastModifiedTests.java:103)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.commons.vfs2.test.AbstractProviderTestCase.runTest(AbstractProviderTestCase.java:218)
              at junit.framework.TestCase.runBare(TestCase.java:141)
              at junit.framework.TestResult$1.protect(TestResult.java:122)
              at junit.framework.TestResult.runProtected(TestResult.java:142)
              at junit.framework.TestResult.run(TestResult.java:125)
              at junit.framework.TestCase.run(TestCase.java:129)
              at junit.framework.TestSuite.runTest(TestSuite.java:252)
              at junit.framework.TestSuite.run(TestSuite.java:247)
              at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
              at org.apache.commons.vfs2.test.AbstractTestSuite$1.protect(AbstractTestSuite.java:149)
              at junit.framework.TestResult.runProtected(TestResult.java:142)
              at org.apache.commons.vfs2.test.AbstractTestSuite.run(AbstractTestSuite.java:154)
              at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:86)
              at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
              at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
              at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
              at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
              at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
              at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      Caused by: jcifs.smb.SmbAuthException: Access denied
              at jcifs.smb.SmbTransport.send(SmbTransport.java:751)
              at jcifs.smb.SmbSession.send(SmbSession.java:109)
              at jcifs.smb.SmbTree.send(SmbTree.java:100)
              at jcifs.smb.SmbFile.send(SmbFile.java:619)
              at jcifs.smb.SmbFile.open0(SmbFile.java:709)
              at jcifs.smb.SmbFile.setPathInformation(SmbFile.java:2031)
              at jcifs.smb.SmbFile.setLastModified(SmbFile.java:2054)
              at org.apache.commons.vfs2.provider.smb.SmbFileObject.doSetLastModifiedTime(SmbFileObject.java:264)
              at org.apache.commons.vfs2.provider.DefaultFileContent.setLastModifiedTime(DefaultFileContent.java:203)
              ... 25 more
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              b.eckenfels Bernd Eckenfels
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: