Login  Register

[jira] [Commented] (OFBIZ-4755) E-commerce search does not always functioning correctly

Posted by Nicolas Malin (Jira) on Apr 04, 2012; 1:54am
URL: http://ofbiz.116.s1.nabble.com/jira-Created-OFBIZ-4755-E-commerce-search-does-not-always-functioning-correctly-tp4501705p4530687.html


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

Jeremy Olmstead commented on OFBIZ-4755:
----------------------------------------

The search is its own little form within the page and catalog id was not part of the form.  Adding the SEARCH_CATALOG_ID field makes it part of the form so that when the search is submitted the catalog is known.  Before applying this patch the catalog was not known when the search form was submitted.  As an example, try this: go to the demo front end store http://demo-trunk.ofbiz.apache.org/ecommerce/control/main.  Change the catalog from default to test (default in this case works as expected, but test does not).  Now search for Cap (this is a product which is in the Rental Catalog and should not be available on the main site).  You get a hit because the keywordsearchbox.ftl had no idea what catalog to search and therefore searched all catalogs regardless.  From here if you click the link to the detail page you get a NullPointerException.
               

> E-commerce search does not always functioning correctly
> -------------------------------------------------------
>
>                 Key: OFBIZ-4755
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4755
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/ecommerce
>            Reporter: Jeremy Olmstead
>            Priority: Minor
>         Attachments: ecommerceSearch1.patch, ecommerceSearch2.patch
>
>
> There seems to be a number of problems with the way e-commerce search works.  I'll just a name a few examples of things I have tried that don't seem to work the way I think they should.  I can delete a catalog from a store and the catalog still shows up and is completely searchable.  I can delete a part from a catalog, then search the catalog and it still shows up, if you click the part from the search results you get a NullPointerException error.  To take things a step further, after deleting the main catalog from the web store, I changed it to View Allow instead of Browse Root, then I even changed every category within the catalog to internal and search still finds parts from that catalog.  Then I created a new catalog and category and put a product within.  From here I can drill down to the part from the newly created catalog, but when I click on the part for details, it still directs me to the other catalog!

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