Error in new category URL's

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

Error in new category URL's

rohit
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
Reply | Threaded
Open this post in threaded view
|

Re: Error in new category URL's

boldhardware
Any word on this? I'm importing data from another system and categories and products with the same ID's are causing problems.

http://ofbiz.135035.n4.nabble.com/Error-in-new-category-URL-s-td161102.html
Reply | Threaded
Open this post in threaded view
|

Re: Error in new category URL's

Jacques Le Roux
Administrator
See status here https://issues.apache.org/jira/browse/OFBIZ-2361

Jacques

From: "boldhardware" <[hidden email]>

> Any word on this? I'm importing data from another system and categories and
> products with the same ID's are causing problems.
>
> http://ofbiz.135035.n4.nabble.com/Error-in-new-category-URL-s-td161102.html
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Error-in-new-category-URL-s-tp161102p4635209.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Error in new category URL's

boldhardware
Hi Jacques,
Thank you for your prompt reply. I discovered this thread after I sent the message to list, but it appears that there's yet to be a resolution to this problem. I downloaded the nightly trunk build and I'm having the same issue as I did with 10.04.02. It's surprising to me that the ofbiz team would allow a bug of this magnitude to continue. 

Thank you for your time. 

--- On Wed, 7/25/12, Jacques Le Roux [via OFBiz] <[hidden email]> wrote:

From: Jacques Le Roux [via OFBiz] <[hidden email]>
Subject: Re: Error in new category URL's
To: "boldhardware" <[hidden email]>
Date: Wednesday, July 25, 2012, 2:56 AM

See status here https://issues.apache.org/jira/browse/OFBIZ-2361

Jacques

From: "boldhardware" <[hidden email]>

> Any word on this? I'm importing data from another system and categories and
> products with the same ID's are causing problems.
>
> http://ofbiz.135035.n4.nabble.com/Error-in-new-category-URL-s-td161102.html
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Error-in-new-category-URL-s-tp161102p4635209.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.



If you reply to this email, your message will be added to the discussion below:
http://ofbiz.135035.n4.nabble.com/Error-in-new-category-URL-s-tp161102p4635221.html
To unsubscribe from Error in new category URL's, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Error in new category URL's

Aijaz
In reply to this post by Jacques Le Roux
Hi even i am getting the same error, I feel it will be better if the IDs are dynamically generated with different prefixes for IDs at the time of creation or there must be some way to differentiate whether the request URl is for Category or Product. Here in OFbiz, the same sequence starts for Category, Products etc so when you try to hit the url related to category, the product with the Same ID gets loaded.
Reply | Threaded
Open this post in threaded view
|

Re: Error in new category URL's

boldhardware
Products and categories should have different URL's, such as /p/ and /c/. This token should be configurable. While you're add it products and categories should have an "seotoken" field which would show up in the URL, instead of the ID. 

--- On Wed, 7/25/12, Aijaz [via OFBiz] <[hidden email]> wrote:

From: Aijaz [via OFBiz] <[hidden email]>
Subject: Re: Error in new category URL's
To: "boldhardware" <[hidden email]>
Date: Wednesday, July 25, 2012, 11:11 PM

Hi even i am getting the same error, I feel it will be better if the IDs are dynamically generated with different prefixes for IDs at the time of creation or there must be some way to differentiate whether the request URl is for Category or Product. Here in OFbiz, the same sequence starts for Category, Products etc so when you try to hit the url related to category, the product with the Same ID gets loaded.


If you reply to this email, your message will be added to the discussion below:
http://ofbiz.135035.n4.nabble.com/Error-in-new-category-URL-s-tp161102p4635237.html
To unsubscribe from Error in new category URL's, click here.
NAML