JavaScript location is empty causes a double requests problem
------------------------------------------------------------- Key: OFBIZ-4477 URL: https://issues.apache.org/jira/browse/OFBIZ-4477 Project: OFBiz Issue Type: Bug Components: themes Affects Versions: SVN trunk Environment: Ubuntu Reporter: Chatree Srichart Priority: Critical I see the JsLanguageFilesMapping.dateTime field does not have a script location for the en_US locale, so it will generate an empty script tag on the HTML header: .. .. <script src="" type="text/javascript"></script> .. .. which causes double requests problem on every requests. To solve this problem I have to check if the javaScript and styleSheet fields in header.ftl files for every themes are empty before generate the script and link tags. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ https://issues.apache.org/jira/browse/OFBIZ-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chatree Srichart updated OFBIZ-4477: ------------------------------------ Attachment: check_empty_javascript_and_stylesheet.patch This is a patch file to solve the problem. > JavaScript location is empty causes a double requests problem > ------------------------------------------------------------- > > Key: OFBIZ-4477 > URL: https://issues.apache.org/jira/browse/OFBIZ-4477 > Project: OFBiz > Issue Type: Bug > Components: themes > Affects Versions: SVN trunk > Environment: Ubuntu > Reporter: Chatree Srichart > Priority: Critical > Attachments: check_empty_javascript_and_stylesheet.patch > > > I see the JsLanguageFilesMapping.dateTime field does not have a script location for the en_US locale, so it will generate an empty script tag on the HTML header: > .. > .. > <script src="" type="text/javascript"></script> > .. > .. > which causes double requests problem on every requests. > To solve this problem I have to check if the javaScript and styleSheet fields in header.ftl files for every themes are empty before generate the script and link tags. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux reassigned OFBIZ-4477: -------------------------------------- Assignee: Jacques Le Roux > JavaScript location is empty causes a double requests problem > ------------------------------------------------------------- > > Key: OFBIZ-4477 > URL: https://issues.apache.org/jira/browse/OFBIZ-4477 > Project: OFBiz > Issue Type: Bug > Components: themes > Affects Versions: SVN trunk > Environment: Ubuntu > Reporter: Chatree Srichart > Assignee: Jacques Le Roux > Priority: Critical > Attachments: check_empty_javascript_and_stylesheet.patch > > > I see the JsLanguageFilesMapping.dateTime field does not have a script location for the en_US locale, so it will generate an empty script tag on the HTML header: > .. > .. > <script src="" type="text/javascript"></script> > .. > .. > which causes double requests problem on every requests. > To solve this problem I have to check if the javaScript and styleSheet fields in header.ftl files for every themes are empty before generate the script and link tags. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126420#comment-13126420 ] Jacques Le Roux commented on OFBIZ-4477: ---------------------------------------- There is a better way to fix this, working on it (was my fault...) > JavaScript location is empty causes a double requests problem > ------------------------------------------------------------- > > Key: OFBIZ-4477 > URL: https://issues.apache.org/jira/browse/OFBIZ-4477 > Project: OFBiz > Issue Type: Bug > Components: themes > Affects Versions: SVN trunk > Environment: Ubuntu > Reporter: Chatree Srichart > Assignee: Jacques Le Roux > Priority: Critical > Attachments: check_empty_javascript_and_stylesheet.patch > > > I see the JsLanguageFilesMapping.dateTime field does not have a script location for the en_US locale, so it will generate an empty script tag on the HTML header: > .. > .. > <script src="" type="text/javascript"></script> > .. > .. > which causes double requests problem on every requests. > To solve this problem I have to check if the javaScript and styleSheet fields in header.ftl files for every themes are empty before generate the script and link tags. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-4477. ---------------------------------- Resolution: Fixed Fix Version/s: SVN trunk Release Branch 11.04 Thanks for report Chatree, Unfortunately your patch was not enough (eCommerce, Lookups). Anyway, it was initially my fault when I added the time picker i18n, recently. It's now fixed in trunk r1182731 R11.04 r1182737 > JavaScript location is empty causes a double requests problem > ------------------------------------------------------------- > > Key: OFBIZ-4477 > URL: https://issues.apache.org/jira/browse/OFBIZ-4477 > Project: OFBiz > Issue Type: Bug > Components: themes > Affects Versions: SVN trunk > Environment: Ubuntu > Reporter: Chatree Srichart > Assignee: Jacques Le Roux > Priority: Critical > Fix For: Release Branch 11.04, SVN trunk > > Attachments: check_empty_javascript_and_stylesheet.patch > > > I see the JsLanguageFilesMapping.dateTime field does not have a script location for the en_US locale, so it will generate an empty script tag on the HTML header: > .. > .. > <script src="" type="text/javascript"></script> > .. > .. > which causes double requests problem on every requests. > To solve this problem I have to check if the javaScript and styleSheet fields in header.ftl files for every themes are empty before generate the script and link tags. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |