[jira] Created: (OFBIZ-3096) NPE when calling a page like http://localhost:8080/cmssite/cms

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-3096) NPE when calling a page like http://localhost:8080/cmssite/cms

Nicolas Malin (Jira)
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.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-3096) NPE when calling a page like http://localhost:8080/cmssite/cms

Nicolas Malin (Jira)

     [ 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-3096) NPE when calling a page like http://localhost:8080/cmssite/cms

Nicolas Malin (Jira)
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.