Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D0C717B3E for ; Tue, 10 Feb 2015 22:50:12 +0000 (UTC) Received: (qmail 39847 invoked by uid 500); 10 Feb 2015 22:50:11 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 39757 invoked by uid 500); 10 Feb 2015 22:50:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 39746 invoked by uid 99); 10 Feb 2015 22:50:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2015 22:50:11 +0000 Date: Tue, 10 Feb 2015 22:50:11 +0000 (UTC) From: "Bernd Eckenfels (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (VFS-562) [smb][tests] SmbAccessDenied when doing setLastModified on dir MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)