commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VFS-562) [smb][tests] SmbAccessDenied when doing setLastModified on dir
Date Tue, 10 Feb 2015 22:50:11 GMT
Bernd Eckenfels created VFS-562:
-----------------------------------

             Summary: [smb][tests] SmbAccessDenied when doing setLastModified on dir
                 Key: VFS-562
                 URL: https://issues.apache.org/jira/browse/VFS-562
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.1
         Environment: Maven 3.2.5, Java 7u76, Windows 7 (x64, german)
            Reporter: Bernd Eckenfels
            Priority: Minor


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.

{code}
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
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message