[Red Hat JIRA] (WFLY-14247) Error Page is not displayed when trying to access META-INF or WEB-INF
by Melvin Yam (Jira)
[ https://issues.redhat.com/browse/WFLY-14247?page=com.atlassian.jira.plugi... ]
Melvin Yam updated WFLY-14247:
------------------------------
Description:
I have a simple webapp war file with the following structure:
{quote}{{Listing archive: mywebapp.war}}{{--}}
{{Path = mywebapp.war}}
{{Type = zip}}
{{Physical Size = 1441}}{{Date Time Attr Size Compressed Name}}
{{------------------- ----- ------------ ------------ ------------------------}}
{{2020-12-23 20:09:20 ....A 18 18 error.html}}
{{2020-12-23 20:09:02 ....A 18 18 index.html}}
{{2020-12-23 20:10:13 D.... 0 0 META-INF}}
{{2020-12-23 03:16:37 ....A 39 39 META-INF\MANIFEST.MF}}
{{2020-12-23 20:12:38 D.... 0 0 WEB-INF}}
{{2020-12-23 20:12:28 D.... 0 0 WEB-INF\classes}}
{{2020-12-23 20:12:35 D.... 0 0 WEB-INF\lib}}
{{2020-12-23 20:11:54 ....A 480 248 WEB-INF\web.xml}}
{{------------------- ----- ------------ ------------ ------------------------}}
{{2020-12-23 20:12:38 555 323 4 files, 4 folders}}
{quote}
In web.xml, it defines the error page:
{quote}<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0">
<display-name>mywebapp</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<error-page>
<location>/error.html</location>
</error-page>
</web-app>
{quote}
After deploying the webapp successfully in local WildFly server.
Accessing the following URL will trigger the error page to be shown:
[http://127.0.0.1:8080/mywebapp/dummy]
[http://127.0.0.1:8080/mywebapp/META-INF/MANIFEST.MF]
[http://127.0.0.1:8080/mywebapp/META-INF/dummy/dummy]
However, the following URL will NOT trigger the error page:
[http://127.0.0.1:8080/mywebapp/META-INF]
[http://127.0.0.1:8080/mywebapp/WEB-INF]
[http://127.0.0.1:8080/mywebapp/WEB-INF/web.xml|http://127.0.0.1:8080/mywe...]
[http://127.0.0.1:8080/mywebapp/WEB-INF/dummy/dummy]
Instead, it just displays the text "404 - Not Found"
was:
I have a simple webapp war file with the following structure:
{quote}{{Listing archive: mywebapp.war}}{{--}}
{{Path = mywebapp.war}}
{{Type = zip}}
{{Physical Size = 1441}}{{Date Time Attr Size Compressed Name}}
{{------------------- ----- ------------ ------------ ------------------------}}
{{2020-12-23 20:09:20 ....A 18 18 error.html}}
{{2020-12-23 20:09:02 ....A 18 18 index.html}}
{{2020-12-23 20:10:13 D.... 0 0 META-INF}}
{{2020-12-23 03:16:37 ....A 39 39 META-INF\MANIFEST.MF}}
{{2020-12-23 20:12:38 D.... 0 0 WEB-INF}}
{{2020-12-23 20:12:28 D.... 0 0 WEB-INF\classes}}
{{2020-12-23 20:12:35 D.... 0 0 WEB-INF\lib}}
{{2020-12-23 20:11:54 ....A 480 248 WEB-INF\web.xml}}
{{------------------- ----- ------------ ------------ ------------------------}}
{{2020-12-23 20:12:38 555 323 4 files, 4 folders}}{quote}
In web.xml, it defines the error page:
{quote}{{<?xml version="1.0" encoding="UTF-8"?>}}
{{<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee"}}
{{ xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0">}}
{{ <display-name>mywebapp</display-name>}}
{{ <welcome-file-list>}}
{{ <welcome-file>index.html</welcome-file>}}
{{ </welcome-file-list>}}
{{ <error-page>}}
{{ <location>/error.html</location>}}
{{ </error-page>}}
{{</web-app>}}{quote}
After deploying the webapp successfully in local WildFly server.
Accessing the following URL will trigger the error page to be shown:
[http://127.0.0.1:8080/mywebapp/dummy]
[http://127.0.0.1:8080/mywebapp/META-INF/MANIFEST.MF]
[http://127.0.0.1:8080/mywebapp/META-INF/dummy/dummy]
However, the following URL will NOT trigger the error page:
[http://127.0.0.1:8080/mywebapp/META-INF]
[http://127.0.0.1:8080/mywebapp/WEB-INF]
[http://127.0.0.1:8080/mywebapp/WEB-INF/web.xml|http://127.0.0.1:8080/mywe...]
[http://127.0.0.1:8080/mywebapp/WEB-INF/dummy/dummy]
Instead, it just displays the text "404 - Not Found"
> Error Page is not displayed when trying to access META-INF or WEB-INF
> ---------------------------------------------------------------------
>
> Key: WFLY-14247
> URL: https://issues.redhat.com/browse/WFLY-14247
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 21.0.2.Final
> Reporter: Melvin Yam
> Assignee: Brian Stansberry
> Priority: Minor
> Attachments: mywebapp.war
>
>
> I have a simple webapp war file with the following structure:
> {quote}{{Listing archive: mywebapp.war}}{{--}}
> {{Path = mywebapp.war}}
> {{Type = zip}}
> {{Physical Size = 1441}}{{Date Time Attr Size Compressed Name}}
> {{------------------- ----- ------------ ------------ ------------------------}}
> {{2020-12-23 20:09:20 ....A 18 18 error.html}}
> {{2020-12-23 20:09:02 ....A 18 18 index.html}}
> {{2020-12-23 20:10:13 D.... 0 0 META-INF}}
> {{2020-12-23 03:16:37 ....A 39 39 META-INF\MANIFEST.MF}}
> {{2020-12-23 20:12:38 D.... 0 0 WEB-INF}}
> {{2020-12-23 20:12:28 D.... 0 0 WEB-INF\classes}}
> {{2020-12-23 20:12:35 D.... 0 0 WEB-INF\lib}}
> {{2020-12-23 20:11:54 ....A 480 248 WEB-INF\web.xml}}
> {{------------------- ----- ------------ ------------ ------------------------}}
> {{2020-12-23 20:12:38 555 323 4 files, 4 folders}}
> {quote}
>
> In web.xml, it defines the error page:
> {quote}<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
> xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd" version="4.0">
> <display-name>mywebapp</display-name>
> <welcome-file-list>
> <welcome-file>index.html</welcome-file>
> </welcome-file-list>
> <error-page>
> <location>/error.html</location>
> </error-page>
> </web-app>
> {quote}
>
> After deploying the webapp successfully in local WildFly server.
> Accessing the following URL will trigger the error page to be shown:
> [http://127.0.0.1:8080/mywebapp/dummy]
> [http://127.0.0.1:8080/mywebapp/META-INF/MANIFEST.MF]
> [http://127.0.0.1:8080/mywebapp/META-INF/dummy/dummy]
>
> However, the following URL will NOT trigger the error page:
> [http://127.0.0.1:8080/mywebapp/META-INF]
> [http://127.0.0.1:8080/mywebapp/WEB-INF]
> [http://127.0.0.1:8080/mywebapp/WEB-INF/web.xml|http://127.0.0.1:8080/mywe...]
> [http://127.0.0.1:8080/mywebapp/WEB-INF/dummy/dummy]
> Instead, it just displays the text "404 - Not Found"
>
>
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
2 years, 11 months
[Red Hat JIRA] (DROOLS-5917) Use LambdaConstraint predicate information to generate better comments in ANC for DMN Alpha Network
by Luca Molteni (Jira)
Luca Molteni created DROOLS-5917:
------------------------------------
Summary: Use LambdaConstraint predicate information to generate better comments in ANC for DMN Alpha Network
Key: DROOLS-5917
URL: https://issues.redhat.com/browse/DROOLS-5917
Project: Drools
Issue Type: Bug
Components: dmn engine
Reporter: Luca Molteni
Assignee: Luca Molteni
It should be possible to put the actual constraints in comments in a generated ANC by leveraging the `PredicateInformation` class used in the executable model to give better error messages.
In the compiled alpha network, instead of
private org.drools.modelcompiler.constraints.LambdaConstraint lambdaConstraint490; // [AlphaNode(490) constraint=Constraint for '0066e054-7241-4ccd-886d-ab6d7e08a99e' (index: null)]
we should have
private org.drools.modelcompiler.constraints.LambdaConstraint lambdaConstraint490; // [AlphaNode(490) constraint=x == true" (index: null)]
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
2 years, 11 months
[Red Hat JIRA] (DROOLS-5916) Wrong BetaIndex with Or in executable-model
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-5916?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi commented on DROOLS-5916:
-------------------------------------------
Fix version: 7.49.0.Final
> Wrong BetaIndex with Or in executable-model
> -------------------------------------------
>
> Key: DROOLS-5916
> URL: https://issues.redhat.com/browse/DROOLS-5916
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.47.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Toshiya Kobayashi
> Priority: Major
>
> When a pattern inside "or" has a constraint which compares to a property of a bind variable, LambdaConstraint.indexingDeclaration is wrongly replaced (during LogicTransformer.transform()) so results in a wrong rule execution.
> {noformat}
> rule R
> when
> $p : Person(name == "Mark") or
> ( $mark : Person(name == "Mark")
> and
> $p : Person(age == $mark.age) )
> $s: String(this == $p.name)
> then
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
2 years, 11 months
[Red Hat JIRA] (DROOLS-5916) Wrong BetaIndex with Or in executable-model
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-5916?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi updated DROOLS-5916:
--------------------------------------
Description:
When a pattern inside "or" has a constraint which compares to a property of a bind variable, LambdaConstraint.indexingDeclaration is wrongly replaced (during LogicTransformer.transform()) so results in a wrong rule execution.
{noformat}
rule R
when
$p : Person(name == "Mark") or
( $mark : Person(name == "Mark")
and
$p : Person(age == $mark.age) )
$s: String(this == $p.name)
then
...
{noformat}
was:
When a pattern inside "or" has a constraint which compares to a property of a bind variable, its betaIndex is wrongly processed (during LogicTransformer.transform()) so results in a wrong rule execution.
{noformat}
rule R
when
$p : Person(name == "Mark") or
( $mark : Person(name == "Mark")
and
$p : Person(age == $mark.age) )
$s: String(this == $p.name)
then
...
{noformat}
> Wrong BetaIndex with Or in executable-model
> -------------------------------------------
>
> Key: DROOLS-5916
> URL: https://issues.redhat.com/browse/DROOLS-5916
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.47.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Toshiya Kobayashi
> Priority: Major
>
> When a pattern inside "or" has a constraint which compares to a property of a bind variable, LambdaConstraint.indexingDeclaration is wrongly replaced (during LogicTransformer.transform()) so results in a wrong rule execution.
> {noformat}
> rule R
> when
> $p : Person(name == "Mark") or
> ( $mark : Person(name == "Mark")
> and
> $p : Person(age == $mark.age) )
> $s: String(this == $p.name)
> then
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
2 years, 11 months
[Red Hat JIRA] (DROOLS-5916) Wrong BetaIndex with Or in executable-model
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-5916?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi updated DROOLS-5916:
--------------------------------------
Summary: Wrong BetaIndex with Or in executable-model (was: Wrong BetaIndex with Or in executabel-model)
> Wrong BetaIndex with Or in executable-model
> -------------------------------------------
>
> Key: DROOLS-5916
> URL: https://issues.redhat.com/browse/DROOLS-5916
> Project: Drools
> Issue Type: Bug
> Components: executable model
> Affects Versions: 7.47.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Toshiya Kobayashi
> Priority: Major
>
> When a pattern inside "or" has a constraint which compares to a property of a bind variable, its betaIndex is wrongly processed (during LogicTransformer.transform()) so results in a wrong rule execution.
> {noformat}
> rule R
> when
> $p : Person(name == "Mark") or
> ( $mark : Person(name == "Mark")
> and
> $p : Person(age == $mark.age) )
> $s: String(this == $p.name)
> then
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
2 years, 11 months
[Red Hat JIRA] (DROOLS-5916) Wrong BetaIndex with Or in executabel-model
by Toshiya Kobayashi (Jira)
Toshiya Kobayashi created DROOLS-5916:
-----------------------------------------
Summary: Wrong BetaIndex with Or in executabel-model
Key: DROOLS-5916
URL: https://issues.redhat.com/browse/DROOLS-5916
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.47.0.Final
Reporter: Toshiya Kobayashi
Assignee: Toshiya Kobayashi
When a pattern inside "or" has a constraint which compares to a property of a bind variable, its betaIndex is wrongly processed (during LogicTransformer.transform()) so results in a wrong rule execution.
{noformat}
rule R
when
$p : Person(name == "Mark") or
( $mark : Person(name == "Mark")
and
$p : Person(age == $mark.age) )
$s: String(this == $p.name)
then
...
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
2 years, 11 months