[jira] Commented: (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] Commented: (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:comment-tabpanel&focusedCommentId=12978472#action_12978472 ]

Wickersheimer Jeremy commented on OFBIZ-2361:
---------------------------------------------

Just noticed the same problem, it is confusing and it will probably hit a lot of people since the default IDs (when creating categories and products from the catalog) are sure to conflict. As a result the category navigation menu (left column) in ecommerce is broken.

Perhaps a quick fix is for the `CatalogUrlServlet` to only consider products when using the p_ prefix syntax ? Anyway there seems to be no way to be ''smart'' since /ecommerce/products/10000/10001 could be either sub category 10001 in category 10000 or product 10001 in category 10000.

> 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
>
> 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.