|
|
|
|
|
|
Re: Infocenter web app: JBoss context-root breaks breadcrumbs [message #472513 is a reply to message #472435] |
Fri, 04 April 2008 17:59 |
Chris Goldthorpe Messages: 815 Registered: July 2009 |
Senior Member |
|
|
Something along those lines might well be the solution although I think
you may need to change it slightly, you may be off by one - I would have
to try out the change to determine exactly what the new variant should
be. Can you open a bug report and include in the bug report your
original description as well as this suggestion? I am not set up to test
on JBoss, are you able to test out a patch on your system? If so and if
we can turn this around quickly I could probably get this into Eclipse 3.4.
James Byrne wrote:
> Hi Chris,
>
> I've had a quick look at the code for the BreadcrumbsFilter class.
>
> I think the cause of the issue is that the path being passed into the
> getBackpath() method is the full path (incl. servlet path) rather than
> the path after the servlet path. For example a path like this:
>
> /support/docs/artix/5.1/help/topic/com.iona.bpel.doc/html/va r-4.html
>
> should be
>
> /topic/com.iona.bpel.doc/html/var-4.html
>
> The simple fix would be to change this line:
>
> String bodyContent = getBodyContent(path, getBackpath(uri), isNarrow,
> locale);
>
> to this:
>
> String bodyContent = getBodyContent(path, getBackpath(pathInfo),
> isNarrow, locale);
>
> Do you think this will fix the issue?
>
> cheers,
>
> James B.
>
|
|
|
|
|
|
|
|
|
Re: Infocenter web app: JBoss context-root breaks breadcrumbs [message #611125 is a reply to message #472435] |
Fri, 04 April 2008 17:59 |
Chris Goldthorpe Messages: 815 Registered: July 2009 |
Senior Member |
|
|
Something along those lines might well be the solution although I think
you may need to change it slightly, you may be off by one - I would have
to try out the change to determine exactly what the new variant should
be. Can you open a bug report and include in the bug report your
original description as well as this suggestion? I am not set up to test
on JBoss, are you able to test out a patch on your system? If so and if
we can turn this around quickly I could probably get this into Eclipse 3.4.
James Byrne wrote:
> Hi Chris,
>
> I've had a quick look at the code for the BreadcrumbsFilter class.
>
> I think the cause of the issue is that the path being passed into the
> getBackpath() method is the full path (incl. servlet path) rather than
> the path after the servlet path. For example a path like this:
>
> /support/docs/artix/5.1/help/topic/com.iona.bpel.doc/html/va r-4.html
>
> should be
>
> /topic/com.iona.bpel.doc/html/var-4.html
>
> The simple fix would be to change this line:
>
> String bodyContent = getBodyContent(path, getBackpath(uri), isNarrow,
> locale);
>
> to this:
>
> String bodyContent = getBodyContent(path, getBackpath(pathInfo),
> isNarrow, locale);
>
> Do you think this will fix the issue?
>
> cheers,
>
> James B.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05179 seconds