bloodhound-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Martin <gary.mar...@wandisco.com>
Subject Re: upgrading to 0.8
Date Tue, 17 Mar 2015 17:16:35 GMT
On 17 March 2015 at 14:11, Tim Tisdall <tisdall@gmail.com> wrote:

> On Mon, Mar 16, 2015 at 7:58 PM, Gary Martin <gary.martin@wandisco.com>
> wrote:
> > Just been looking at the area of the code that I think the error is
> coming
> > from. Coming to this for the first time, and blind to the means by which
> > this error is triggered, I'd probably want to know what the value of
> > path_info on line 78 of bloodhound_multiproduct/multiproduct/web_ui.py
>
> Okay, when I try to access "/products/accesspoint/ticket/37" the
> path_info is "/ticket/37".
>
> I don't understand the code chunk at all, though...  Basically if
> pathinfo has a value other than "/" you're going to get an error of
> some sort.  Here's my very dumb fix that appears to be working:
>
> diff bloodhound_multiproduct/multiproduct/web_ui.py web_ui.py
> 78c78
> <         path_info = req.args.get('pathinfo')
> ---
> >         '''path_info = req.args.get('pathinfo')
> 87c87
> <                     _('Unable to render product page. Wrong setup?'))
> ---
> >                     _('Unable to render product page. Wrong setup?'))'''
>
> So, that's why "/products/myproduct/" works, but anything else doesn't.
>

‚Äč
Tim,

Hmm... I think I found one way to replicate the error but it is not clear
that it matches your problem yet. If on my test server I hit a path like
products/DEF/products/DEF/somethingelse then I get that error (where DEF is
the prefix for my default product).

Under this circumstance the path_info would be turning up as
"/somethingelse"

Not sure if I should go as far as admitting that this is suggestive of a
bug but it does make it look like you might have a strange setup. I'll have
another look at this in a bit but if you happen to spot anything odd about
your setup, that might be helpful.

Cheers,
    Gary

Mime
View raw message