ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Balkir (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-11448) Potential Nullpointer in ErrorPage.ftl
Date Tue, 10 Mar 2020 14:54:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-11448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056024#comment-17056024
] 

Dennis Balkir commented on OFBIZ-11448:
---------------------------------------

The patch is provided here: [https://github.com/apache/ofbiz-framework/pull/47] as a pull
request

> Potential Nullpointer in ErrorPage.ftl
> --------------------------------------
>
>                 Key: OFBIZ-11448
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11448
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Dennis Balkir
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> This line of code right here:
> {code:java}
> <p>${request.getAttribute("_ERROR_MESSAGE_")?replace("\n", "<br/>")}</p>
> {code}
> can produce a nullpointer error, since the attribute "_ERROR_MESSAGE_" from the request
ist used by the replace method of freemarker, without nullchecking it first.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message