public class org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker implements org.eclipse.jetty.server.handler.ContextHandler$AliasCheck
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker
super_class: java.lang.Object
{
private static final org.eclipse.jetty.util.log.Logger LOG;
descriptor: Lorg/eclipse/jetty/util/log/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/eclipse/jetty/server/handler/AllowSymLinkAliasChecker;
invokestatic org.eclipse.jetty.util.log.Log.getLogger:(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
putstatic org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker.LOG:Lorg/eclipse/jetty/util/log/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/server/handler/AllowSymLinkAliasChecker;
public boolean check(java.lang.String, org.eclipse.jetty.util.resource.Resource);
descriptor: (Ljava/lang/String;Lorg/eclipse/jetty/util/resource/Resource;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.eclipse.jetty.util.resource.PathResource
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 2
checkcast org.eclipse.jetty.util.resource.PathResource
astore 3
start local 3 3: aload 3
invokevirtual org.eclipse.jetty.util.resource.PathResource.getPath:()Ljava/nio/file/Path;
astore 4
start local 4 4: aload 3
invokevirtual org.eclipse.jetty.util.resource.PathResource.getAliasPath:()Ljava/nio/file/Path;
astore 5
start local 5 5: aload 4
aload 5
invokeinterface java.nio.file.Path.equals:(Ljava/lang/Object;)Z
ifeq 7
6: iconst_0
ireturn
7: StackMap locals: org.eclipse.jetty.util.resource.PathResource java.nio.file.Path java.nio.file.Path
StackMap stack:
aload 0
aload 4
invokevirtual org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker.hasSymbolicLink:(Ljava/nio/file/Path;)Z
ifeq 13
aload 4
aload 5
invokestatic java.nio.file.Files.isSameFile:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Z
ifeq 13
8: getstatic org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 10
9: getstatic org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Allow symlink {} --> {}"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
invokevirtual org.eclipse.jetty.util.resource.PathResource.getAliasPath:()Ljava/nio/file/Path;
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
10: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 5 end local 4 11: StackMap locals: org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker java.lang.String org.eclipse.jetty.util.resource.Resource org.eclipse.jetty.util.resource.PathResource
StackMap stack: java.lang.Exception
astore 4
start local 4 12: getstatic org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 4
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
end local 4 13: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/eclipse/jetty/server/handler/AllowSymLinkAliasChecker;
0 14 1 uri Ljava/lang/String;
0 14 2 resource Lorg/eclipse/jetty/util/resource/Resource;
3 14 3 pathResource Lorg/eclipse/jetty/util/resource/PathResource;
4 11 4 path Ljava/nio/file/Path;
5 11 5 alias Ljava/nio/file/Path;
12 13 4 e Ljava/lang/Exception;
Exception table:
from to target type
3 6 11 Class java.lang.Exception
7 10 11 Class java.lang.Exception
MethodParameters:
Name Flags
uri
resource
private boolean hasSymbolicLink(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.nio.file.Files.isSymbolicLink:(Ljava/nio/file/Path;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.nio.file.Path.getRoot:()Ljava/nio/file/Path;
astore 2
start local 2 3: aload 1
invokeinterface java.nio.file.Path.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: org.eclipse.jetty.server.handler.AllowSymLinkAliasChecker java.nio.file.Path java.nio.file.Path top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 3
start local 3 5: aload 2
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 2
6: aload 2
invokestatic java.nio.file.Files.isSymbolicLink:(Ljava/nio/file/Path;)Z
ifeq 8
7: iconst_1
ireturn
end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/jetty/server/handler/AllowSymLinkAliasChecker;
0 10 1 path Ljava/nio/file/Path;
3 10 2 base Ljava/nio/file/Path;
5 8 3 segment Ljava/nio/file/Path;
MethodParameters:
Name Flags
path
}
SourceFile: "AllowSymLinkAliasChecker.java"
InnerClasses:
public abstract AliasCheck = org.eclipse.jetty.server.handler.ContextHandler$AliasCheck of org.eclipse.jetty.server.handler.ContextHandler