NPE when calling a page like http://localhost:8080/cmssite/cms
-------------------------------------------------------------- Key: OFBIZ-3096 URL: https://issues.apache.org/jira/browse/OFBIZ-3096 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: SVN trunk Reporter: Patrick Antivackis Fix For: SVN trunk Attachments: Patch-OFBIZ-3096.txt A Null Pointer Exception is generated by RequestHandler.trackVIsit and trackStat if a page is called without view and without trailing slash after the controller. This may be not a problem for non cms site, but it is for cms site. Calling http://localhost:8080/cmssite/cms will generate a NPE; WIth the included pacth, calling the same page will display the default page. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Antivackis updated OFBIZ-3096: -------------------------------------- Attachment: Patch-OFBIZ-3096.txt > NPE when calling a page like http://localhost:8080/cmssite/cms > -------------------------------------------------------------- > > Key: OFBIZ-3096 > URL: https://issues.apache.org/jira/browse/OFBIZ-3096 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Patrick Antivackis > Fix For: SVN trunk > > Attachments: Patch-OFBIZ-3096.txt > > > A Null Pointer Exception is generated by RequestHandler.trackVIsit and trackStat if a page is called without view and without trailing slash after the controller. > This may be not a problem for non cms site, but it is for cms site. Calling http://localhost:8080/cmssite/cms will generate a NPE; WIth the included pacth, calling the same page will display the default page. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-3096. ---------------------------------- Resolution: Fixed Assignee: Jacques Le Roux Thanks Patrick, Your slightly modified patch is in trunk at r830366, R9.04 at r830374 I have just modified to respect our syntax convetions ie : {code} + if (uriString == null) { + uriString=""; + } {code} instead of {code} + if (uriString == null) uriString=""; {code} > NPE when calling a page like http://localhost:8080/cmssite/cms > -------------------------------------------------------------- > > Key: OFBIZ-3096 > URL: https://issues.apache.org/jira/browse/OFBIZ-3096 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Patrick Antivackis > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: Patch-OFBIZ-3096.txt > > > A Null Pointer Exception is generated by RequestHandler.trackVIsit and trackStat if a page is called without view and without trailing slash after the controller. > This may be not a problem for non cms site, but it is for cms site. Calling http://localhost:8080/cmssite/cms will generate a NPE; WIth the included pacth, calling the same page will display the default page. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |