[jira] Updated: (OFBIZ-2361) Category URL conflicts with product URL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2361) Category URL conflicts with product URL

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wasun Sriwichai updated OFBIZ-2361:
-----------------------------------

    Attachment: CatalogUrlServlet.patch

This patch will solve the problem when the category_id and product_id URLs are the same, It can identify which id belong to the category or product.

The process is URL checking, suppose that category_id = 100 as same as product_id and first the category URL is "URL = ecommerce/products/100", the process will check that the first ID in the URL always be the category_id so the category page will display. Secondly, the category URL is "URL = ecommerce/products/100/100", the process will check that the first ID is always the category_id and it cannot be duplicate in the URL so the next ID have to be the product_id and product page will be displayed.

> Category URL conflicts with product URL
> ---------------------------------------
>
>                 Key: OFBIZ-2361
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2361
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/ecommerce
>    Affects Versions: SVN trunk
>         Environment: red hat, postgres
>            Reporter: Rohit Sureka
>         Attachments: CatalogUrlServlet.patch
>
>
> Hi,
> I just found out a potential bug in the new URL structure for category links in the ecommerce page.
> The new URL's for a category link reads as http://demo.ofbiz.org/ecommerce/products/100/100
> here 100 is the category ID, this URL should ideally list all products in the category with ID 100. However if we create a product with ID 100 ie. product_id=100, there arise the bug. Instead of all item being shown in the category, the product page for product_id 100 is displayed, irrespective of the category/catalog/store that product ID belongs to.
> I think this is a unusual behavior, and may cause problems for people wanting to move on to newer code.
> Please let me know if should open a jira issue for it.
> Rohit

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.