[JBoss JIRA] (WFLY-11722) Internal Server Error (500) when using directory-listing in FileHandler
by Adam Krajcik (Jira)
[ https://issues.jboss.org/browse/WFLY-11722?page=com.atlassian.jira.plugin... ]
Adam Krajcik updated WFLY-11722:
--------------------------------
Priority: Minor (was: Major)
> Internal Server Error (500) when using directory-listing in FileHandler
> -----------------------------------------------------------------------
>
> Key: WFLY-11722
> URL: https://issues.jboss.org/browse/WFLY-11722
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 15.0.1.Final
> Reporter: Adam Krajcik
> Assignee: Flavia Rainone
> Priority: Minor
>
> When I added a bad symlink to the *welcome-content* and allowed *directory-listing* in the file handler of the *welcome-content* server returns Internal Server Error (500) when accessing the folder containing the bad symlink. However, no exception is logged in the output on WildFly.
> I also tried to use simple example application - _File Serving_ from [Undertow Examples|https://github.com/undertow-io/undertow/tree/master/examples] where I can see the following exception when accessing the directory with the bad symlink:
> {code}
> java.lang.RuntimeException: java.nio.file.NoSuchFileException: /home/akrajcik/Pictures/pictures
> at io.undertow.server.handlers.resource.PathResource.getLastModified(PathResource.java:62)
> at io.undertow.server.handlers.resource.DirectoryUtils.renderDirectoryListing(DirectoryUtils.java:139)
> at io.undertow.server.handlers.resource.DirectoryUtils.renderDirectoryListing(DirectoryUtils.java:162)
> at io.undertow.server.handlers.resource.ResourceHandler$1.handleRequest(ResourceHandler.java:233)
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:364)
> at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> at java.lang.Thread.run(Thread.java:811)
> Caused by: java.nio.file.NoSuchFileException: /home/akrajcik/Pictures/pictures
> at sun.nio.fs.UnixException.translateToIOException(UnixException.java:98)
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:114)
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:119)
> at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:67)
> at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:156)
> at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:111)
> at java.nio.file.Files.readAttributes(Files.java:1748)
> at java.nio.file.Files.getLastModifiedTime(Files.java:2277)
> at io.undertow.server.handlers.resource.PathResource.getLastModified(PathResource.java:60)
> ... 8 more
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3716) drools-constraint-parser module cannot be built with JDK 11
by Tibor Zimányi (Jira)
Tibor Zimányi created DROOLS-3716:
-------------------------------------
Summary: drools-constraint-parser module cannot be built with JDK 11
Key: DROOLS-3716
URL: https://issues.jboss.org/browse/DROOLS-3716
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.18.0.Final
Reporter: Tibor Zimányi
Assignee: Tibor Zimányi
When building drools-constraint-parser with JDK 11, it fails on compilation errors, not having annotation classes on classpath.
This should be added to the dependencies list of the module:
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</dependency>
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months
[JBoss JIRA] (DROOLS-3715) Zipkiemodule nullpointerexception
by Łukasz Szmolke (Jira)
Łukasz Szmolke created DROOLS-3715:
--------------------------------------
Summary: Zipkiemodule nullpointerexception
Key: DROOLS-3715
URL: https://issues.jboss.org/browse/DROOLS-3715
Project: Drools
Issue Type: Bug
Affects Versions: 7.17.0.Final, 7.16.0.Final
Reporter: Łukasz Szmolke
Assignee: Mario Fusco
o During ZipKieModule loading in “org.drools.compiler.kie.builder.impl.ZipKieModule:142” nullpointerexception is thrown:
urlPath = urlPath.substring( urlPath.lastIndexOf( '!' ) + 1 );
ArrayList<ZipEntry> entries = new ArrayList<>();
// read jar file from uber-jar
InputStream in = this.getClass().getResourceAsStream(urlPath); // nullpointerexception
For example full UrlPath on windows to internal .jar is:
C:\Users\xbbnv0c\IdeaProjects\ais-data-exchange\data-exchange-app\target\data-exchange-app-1.0.1-SNAPSHOT.jar!\BOOT-INF\lib\data-exchange-brms-1.0.1-SNAPSHOT.jar
So the result of this first line will be:
\BOOT-INF\lib\data-exchange-brms-1.0.1-SNAPSHOT.jar
It will be perfect, but during accessing internal resource file separator should be “/” not “\”. So InputStream in = null.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 2 months