ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rishi Solanki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-9230) Missing reference to the delegator in framework/widget/templates/HtmlFormMacroLibrary.ftl
Date Sat, 04 Mar 2017 13:55:45 GMT

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

Rishi Solanki commented on OFBIZ-9230:
--------------------------------------

[~jacques.le.roux]: Thanks for the details, it helps me to understand the exact problem and
what/why you are trying to achieve. I really need the details and thank you for that. And
sorry for not digging into it before your last detailed comment.

I think (also checked in the code) that we will always have the delegator name in the session
which actually point to the current tenant (refer ControlServlet.java line160 and LoginWorker.java
line530). I guess in the template/FTL context or in the screen context whenever we get the
delegator as null we can use this delegatorName first from session and if it is empty then
we could try to use default delegator.
IMO, this should fix the problem if in the context we don't have the delegator but we have
the delegatroName in the session.

Note: I couldn't tried this, but I think this should work and should also fix the problem.


> Missing reference to the delegator in framework/widget/templates/HtmlFormMacroLibrary.ftl
> -----------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-9230
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9230
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Wei Zhang
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OFBIZ-9230.patch
>
>
> To reproduce
> 1. Load test data <SystemProperty systemResourceId="widget" systemPropertyId="widget.autocompleter.defaultMinLength"
systemPropertyValue="3"/> 
> 2. Open https://localhost:8443/partymgr/control/main
> 3. You will still get warning below in log file
> {quote}
> 2017-02-24 12:56:16,348 |http-nio-8443-exec-7 |EntityUtilProperties          |I| Could
not get a system property for widget.autocompleter.defaultMinLength : null
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message