JR44968: CMVC 225337 - PREVENT COMMERCE FROM PASSING 0 LENGTH KEYWORDS TO SOLR SEARCH

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • Certain searches can result in WebSphere Commerce passing 0
    length keywords to Solr resulting in parsing errors similar to
    this:
    
    
    [2/2/12 15:09:19:752 UTC] 00000058 SolrCore      E
    org.apache.solr.common.SolrException log
    org.apache.solr.common.SolrException:
    org.apache.lucene.queryParser.ParseException: Cannot parse
    '+(name:(+my +test + +search) defaultSearch:(+my +test +
    +search) shortDescription:(+my +test + +search) unstructure:(+my
    +test + +search) field5:(+my +test + +search))': Encountered "
    "+" "+ "" at line 1, column 22.
    Was expecting one of:
        "(" ...
        "*" ...
        <QUOTED> ...
        <TERM> ...
        <PREFIXTERM> ...
        <WILDTERM> ...
        "[" ...
        "{" ...
        <NUMBER> ...
        <TERM> ...
        "*" ...
    
     at
    org.apache.solr.handler.component.QueryComponent.prepare(QueryCo
    mponent.java:108)
     at
    org.apache.solr.handler.component.SearchHandler.handleRequestBod
    y(SearchHandler.java:174)
     at
    org.apache.solr.handler.RequestHandlerBase.handleRequest(Request
    HandlerBase.java:131)
     at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
     at
    org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchF
    ilter.java:338)
     at
    org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatch
    Filter.java:241)
       ...
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce users on v7.0 who use Feature Pack 3
    WebSphere Commerce Search.
    
    PROBLEM ABSTRACT:
    Some search keywords could result in WebSphere Commerce passing
    0 length keywords to Solr search, resulting in parsing errors.
    
    BUSINESS IMPACT:
    No search results or an error page are returned to the user.
    
    RECOMMENDATION:
    

Problem conclusion

  • This iFix now corrects the reported issue by handling empty
    input search terms properly so as to avoid adding empty search
    term into the search request, causing two "+" signs side by side
    in the search expression.
    
    -------------------------------------------------------------
    The latest available maintenance information can be obtained
    from the Recommended Fixes for WebSphere Commerce technote:
    http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR44968

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-30

  • Closed date

    2013-02-05

  • Last modified date

    2013-02-05

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere Commerce Enterprise

Software version:

7.0

Reference #:

JR44968

Modified date:

2013-02-05

Translate my page

Machine Translation

Content navigation