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

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

I am not entirely convinced that this is related to the Filter, though I could 
be wrong. The underlying issue looks like an encoding issue to me, switching 
from UTF-8 to an ISO based format or vice versa. I am not sure that this is 
actually happening within the CatalogUrlFilter, but I will have to look into it 
myself... On a first guess, i would look into the keywordsearch.groovy file 
where a char conversion is more likely to be found. 

@sebastian: the drawbacks are mainly related to some hefty changes in a future 
OFBiz version. Even the patch we provided isn't 100% spot on, since we tried to 
introduce changes without reworking all of the original URL generation code. 
Though it can be used, ideally it should be fully integrated into OFBiz at some 
point.

You see, the underlying issue with OFBiz URL generation is that there is an 
assumption of pages being rendered through other means than /control. Though 
this is never the case, it remains the reason why we misuse the index.jsp file 
to do redirects to /control and handle it with a controlservlet in there. To be 
fair, this is common practice among web application development, but a practice 
that leads to undesired effects from a URL or even customer point of view. The 
ootb version of OFBiz unfortunately only works around the issue, which is why a 
lot of redirects take place and yes, also make the same content available under 
2 different urls. Both are dangerous when it comes to SEO. The fix would be to 
map the controlservlet to / and introduce proper filters to handle the 
auto-generated URLS (product, catalog).

> 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