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

Paul Piper commented on OFBIZ-4535:
-----------------------------------

Hi Sebastian,

that is indeed less than ideal. It probably derives from the fact that only the 
productId/categoryId is evaluated in the url structure, and not the rest of the 
string. It probably isn't "too dangerous" if the generated URL is kept the 
same, but it is risky and not ideal to say the least. If we do not want to 
implement a url database on an entity level, i would propose to build a simple 
filter that:

1. Looks up request URL
1. Identifies productid/categoryid/catalogid/contentid in the string
1. Uses the generator to generate a new request url
1. matches both, the generated string and the request url and does a request 
redirect if they don't match... 

> Search using Russian word (maybe others) causes distortion and failed product 
> search
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4535
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4535
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/ecommerce
>    Affects Versions: SVN trunk, Release Branch 12.04
>         Environment: Ubuntu and others.
>            Reporter: mz4wheeler
>         Attachments: r1127449-r1127394.diff
>
>
> NOTE: The following post contains UTF8 characters.
> After rebuilding keywords in a UTF8 database (postgres) and searching a UTF8 
> browser (chrome), the Russian phrase is correctly present in the database, as 
> follows:
> ofbiz=# select * from product_keyword where keyword = 'игроков';
>    product_id    | keyword | relevancy_weight (trimmed)
> -----------------+---------+-----------------
>  DVDMV-ADVANGYM  | игроков |                1 
> However, when pasting 'игроков' into ecommerce Search, the following is 
> returned "Not Found"
> Keywords: "Ð¸Ð³Ñ Ð¾ÐºÐ¾Ð²", where any word matches, which distorts the search.
> This may affect other languages, which I haven't tested.
> I also tried the same search in 12.04 (demo) and trunk and it produces the 
> same issue.  This means that multi-language product search is broken in 
> OFBiz.  11.04 is unaffected.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to