]> source.dussan.org Git - jgit.git/commit
Fix error occurring when SecurityManager is enabled 91/147791/8
authorNail Samatov <sanail@yandex.ru>
Thu, 15 Aug 2019 17:15:40 +0000 (20:15 +0300)
committerNail Samatov <sanail@yandex.ru>
Fri, 23 Aug 2019 17:38:26 +0000 (20:38 +0300)
commitb9d2926df44a47116d2b0f56a16fc1b39e466dc2
tree7ff99e69c1b55c19f96adc321d7305863efe3ff1
parent2d0f1c1dc11fd445d3137b1f2fa49f88bbd48bb5
Fix error occurring when SecurityManager is enabled

It's expected that jgit should work without native git installation.
In such case Security Manager can be configured to deny access to the
files outside of git repository. JGit tries to find cygwin
installation. If Security manager restricts access to some folders
in PATH, it should be considered that those folders are absent
for jgit.
Also JGit tries to detect if symbolic links are supported by OS. If
security manager forbids creation of symlinks, it should be assumed
that symlinks aren't supported.

Bug: 550115
Change-Id: Ic4b243cada604bc1090db6cc1cfd74f0fa324b98
Signed-off-by: Nail Samatov <sanail@yandex.ru>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/SeparateClassloaderTestRunner.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/SecurityManagerTest.java [new file with mode: 0644]
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java