Discussion:
[jira] [Created] (DERBY-6865) RestrictiveFilePermissionsTest fails on Windows
(too old to reply)
Knut Anders Hatlen (JIRA)
2016-02-04 20:08:39 UTC
Permalink
Knut Anders Hatlen created DERBY-6865:
-----------------------------------------

Summary: RestrictiveFilePermissionsTest fails on Windows
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.0.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen


{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
There were 13 failures:
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Knut Anders Hatlen (JIRA)
2016-02-05 11:22:39 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15134025#comment-15134025 ]

Knut Anders Hatlen commented on DERBY-6865:
-------------------------------------------

git bisect says:

579dc9f4698f42e153325223d93f2c81ef3dbd72 is the first bad commit
commit 579dc9f4698f42e153325223d93f2c81ef3dbd72
Author: Richard N. Hillegas <***@apache.org>
Date: Sun Jan 24 14:43:28 2016 +0000

DERBY-6857: Remove support for java 6 and 7; compile Derby completely into java 8 byte code; commit derby-6857-01-aa-remove6and7.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/***@1726495 13f79535-47bb-0310-9956-ffa450edef68

:100644 100644 f13561041f7e02e7ff36e4336c9febab623a9f97 ba6e9d8f2f3f26bfa6fe2c1d7072861adc2a963f M BUILDING.html
:100644 100644 e32ceb937321ab55b2cd2aae60f960aebe3ca0b1 2e429aa2888ae72ed89fd0f98263d5def7c07aaa M build.xml
:040000 040000 d13f6159759e4bbf550d8067a5aaf044aa4dcd7d 967a3bdd7cc59ba36f29c695a3e7d12c764d958a M java
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.0.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF subversion and git services (JIRA)
2016-02-05 13:49:39 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15134194#comment-15134194 ]

ASF subversion and git services commented on DERBY-6865:
--------------------------------------------------------

Commit 1728667 from [~knutanders] in branch 'code/trunk'
[ https://svn.apache.org/r1728667 ]

DERBY-6865: RestrictiveFilePermissionsTest fails on Windows

Remove use of reflection in the test. Reflection was used to access
functionality only available on Java 7 and higher. Since Java 8 is
the minimum level now, reflection is no longer needed.

This doesn't fix the test failure, but it makes it easier to debug
the test.
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.0.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Knut Anders Hatlen (JIRA)
2016-02-05 14:09:39 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen reassigned DERBY-6865:
-----------------------------------------

Assignee: Knut Anders Hatlen
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.0.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
Assignee: Knut Anders Hatlen
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Knut Anders Hatlen (JIRA)
2016-02-05 14:11:39 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15134226#comment-15134226 ]

Knut Anders Hatlen commented on DERBY-6865:
-------------------------------------------

The problem seems to be that the FilePermissionServiceImpl class is not included in derby.jar anymore. It is only included if the vmLevelIsAtLeast1.7 property is true, but that property is not set anymore.
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.0.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
Assignee: Knut Anders Hatlen
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
ASF subversion and git services (JIRA)
2016-02-05 15:20:39 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15134310#comment-15134310 ]

ASF subversion and git services commented on DERBY-6865:
--------------------------------------------------------

Commit 1728681 from [~knutanders] in branch 'code/trunk'
[ https://svn.apache.org/r1728681 ]

DERBY-6865: RestrictiveFilePermissionsTest fails on Windows

Move the contents of FilePermissionServiceImpl into FileUtil. It was
originally separated out of FileUtil because it used functionality
only available on Java 7 and higher, so it had to be loaded via
reflection. Since Java 8 is the minimum level on trunk, it could be
used directly from FileUtil without reflection.

The reason for the test failure was that a recent change caused
FilePermissionServiceImpl to be excluded from derby.jar, so that its
services were not used, and the database files ended up with unexpected
permissions.
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.0.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
Assignee: Knut Anders Hatlen
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Rick Hillegas (JIRA)
2016-02-06 00:48:39 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15135359#comment-15135359 ]

Rick Hillegas commented on DERBY-6865:
--------------------------------------

Thanks for fixing this, Knut. It's puzzling that the class dropped out of the jar file but was not noticed by the jarfiledrift logic.
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.0.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
Assignee: Knut Anders Hatlen
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Knut Anders Hatlen (JIRA)
2016-02-08 08:12:39 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15136685#comment-15136685 ]

Knut Anders Hatlen commented on DERBY-6865:
-------------------------------------------

It looks like the JarDriftTest class only looks for classes that drift into the jar files, not classes that drift out of it.
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.0.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
Assignee: Knut Anders Hatlen
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Bryan Pendleton (JIRA)
2016-11-04 22:46:58 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15637947#comment-15637947 ]

Bryan Pendleton commented on DERBY-6865:
----------------------------------------

Is this issue still open? Was there more to do beyond the changes in r1728681?
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.1.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
Assignee: Knut Anders Hatlen
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Knut Anders Hatlen (JIRA)
2016-11-07 09:07:59 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen closed DERBY-6865.
-------------------------------------
Resolution: Fixed
Fix Version/s: 10.13.1.0
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.1.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
Assignee: Knut Anders Hatlen
Fix For: 10.13.1.0
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
Knut Anders Hatlen (JIRA)
2016-11-07 09:08:58 UTC
Permalink
[ https://issues.apache.org/jira/browse/DERBY-6865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15643573#comment-15643573 ]

Knut Anders Hatlen commented on DERBY-6865:
-------------------------------------------

The problem reported here has been fixed. Closing the issue.
Post by Knut Anders Hatlen (JIRA)
RestrictiveFilePermissionsTest fails on Windows
-----------------------------------------------
Key: DERBY-6865
URL: https://issues.apache.org/jira/browse/DERBY-6865
Project: Derby
Issue Type: Bug
Components: Test
Affects Versions: 10.13.1.0
Environment: Windows 10
JDK 8u71
Derby trunk revision 1728459
Reporter: Knut Anders Hatlen
Assignee: Knut Anders Hatlen
Fix For: 10.13.1.0
{noformat}
.F.F.F.F.F.F.F.F.F.F.F.F.F..
Time: 48,93
1) testBackupRestoreFiles(org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest)junit.framework.AssertionFailedError: unexpected uid \OPPRETTER EIER can access file C:\cygwin64\tmp\derbytst\system\RFPT_backup
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:758)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest$2.run(RestrictiveFilePermissionsTest.java:597)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:597)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.checkAccessToOwner(RestrictiveFilePermissionsTest.java:582)
at org.apache.derbyTesting.functionTests.tests.engine.RestrictiveFilePermissionsTest.testBackupRestoreFiles(RestrictiveFilePermissionsTest.java:372)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:120)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBareOverridable(BaseJDBCTestCase.java:443)
at org.apache.derbyTesting.junit.BaseJDBCTestCase.runBare(BaseJDBCTestCase.java:460)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:58)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...