You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:21:27 UTC

[sling-org-apache-sling-commons-fsclassloader] 06/20: SLING-5398 - WebConsole plugin for FS ClassLoader can't load files on windows

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.commons.fsclassloader-1.0.4
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-fsclassloader.git

commit f27ac06c7dba34e6d9c009f3aeb3226cf9917f27
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Tue Dec 22 13:33:30 2015 +0000

    SLING-5398 - WebConsole plugin for FS ClassLoader can't load files on
    windows
    
    Applied patch by Burkhard Pauli, thanks for the contribution.
    
    This closes #120
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/fsclassloader@1721395 13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/commons/fsclassloader/impl/FSClassLoaderWebConsole.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/commons/fsclassloader/impl/FSClassLoaderWebConsole.java b/src/main/java/org/apache/sling/commons/fsclassloader/impl/FSClassLoaderWebConsole.java
index 4e36614..478c8e9 100644
--- a/src/main/java/org/apache/sling/commons/fsclassloader/impl/FSClassLoaderWebConsole.java
+++ b/src/main/java/org/apache/sling/commons/fsclassloader/impl/FSClassLoaderWebConsole.java
@@ -271,7 +271,7 @@ public class FSClassLoaderWebConsole extends AbstractWebConsolePlugin {
 			File parent = file.getCanonicalFile().getAbsoluteFile()
 					.getParentFile();
 			while (parent != null) {
-				if (parent.getAbsolutePath().equals(root.getAbsolutePath())) {
+				if (parent.getCanonicalPath().equals(root.getCanonicalPath())) {
 					return true;
 				}
 				parent = parent.getParentFile();

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.