Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-9308

CMS shows error screen on Product Search

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Upcoming Release
    • Component/s: content
    • Labels:
      None

      Description

      Steps to regenerate:
      1. Go to Content component (https://localhost:8443/content/control/main)
      2. Click on CMS tab (directing to https://localhost:8443/content/control/CMSContentFind)
      3. Click on Search Products subtab (directing to https://localhost:8443/content/control/ProductSearch)
      4. Provide a Lucene Query and Click submit.
      5. Screen renders with ScreenRenderingException

      1. OFBIZ-9308.patch
        1 kB
        Aditya Sharma
      2. screenshot-1.png
        76 kB
        Aditya Sharma

        Activity

        Hide
        aditya.sharma Aditya Sharma added a comment -

        Changes reverted in revision:179477 http://markmail.org/message/x5wjustjvpf3jyqv Hence reopening

        Show
        aditya.sharma Aditya Sharma added a comment - Changes reverted in revision:179477 http://markmail.org/message/x5wjustjvpf3jyqv Hence reopening
        Hide
        aditya.sharma Aditya Sharma added a comment -

        Thanks Jacques

        Show
        aditya.sharma Aditya Sharma added a comment - Thanks Jacques
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Aditya

        Your patch is in at revision: 1790933. No problems in releases branches

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Aditya Your patch is in at revision: 1790933. No problems in releases branches
        Hide
        aditya.sharma Aditya Sharma added a comment -

        Problem:
        1. "ProductSearch" request directs to "ProductSearch" screen in LuceneScreens.xml.
        2. On ProductSearch screen, "SearchProducts.groovy" script prepares and hits a search query to Lucene.
        3. "BooleanQuery" class is used to match documents with other boolean query combinations.
        4. BooleanQuery object is initialised with Its default constructor.
        5. With Lucene 5.4.0, this constructor is deprecated.
        OFBiz migrated to Lucene 6.3.1:
        OFBIZ-8316

        Solution:
        From Lucene 5.4.0 default constructor is deprecated and a new inner class Builder is created for queries.

        Refer OFBIZ-9301 for detailed explanation.

        Show
        aditya.sharma Aditya Sharma added a comment - Problem: 1. "ProductSearch" request directs to "ProductSearch" screen in LuceneScreens.xml. 2. On ProductSearch screen, "SearchProducts.groovy" script prepares and hits a search query to Lucene. 3. "BooleanQuery" class is used to match documents with other boolean query combinations. 4. BooleanQuery object is initialised with Its default constructor. 5. With Lucene 5.4.0, this constructor is deprecated. OFBiz migrated to Lucene 6.3.1: OFBIZ-8316 Solution: From Lucene 5.4.0 default constructor is deprecated and a new inner class Builder is created for queries. Refer OFBIZ-9301 for detailed explanation.

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            aditya.sharma Aditya Sharma
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development