forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ross Gardler (JIRA)" <>
Subject [jira] Created: (FOR-1010) Per folder themes do not work in sub-subfolders
Date Wed, 13 Jun 2007 22:14:25 GMT
Per folder themes do not work in sub-subfolders

                 Key: FOR-1010
             Project: Forrest
          Issue Type: Bug
          Components: Plugin: internal.dispatcher
    Affects Versions: 0.8
            Reporter: Ross Gardler
            Priority: Minor

It is supposed to be possible to create custom views that will be applied to a given folder.
However there appears to be a problem with the generation of the theme when a subfolder contains
another subfolder which in turn provides a customised theme. To illustrate this I have added
some basic example docs to the dispatcher plugin (see the SVN record for this issue for details).

To reproduce the error request do forrest run on the dispatcher plugin then request http://localhost:8888/how/perFolderThemes/index.html
this page will correctly display the pelt theme without the pdf export (this is the customisation
I made to the pelt theme here).

Now request http://localhost:8888/how/perFolderThemes/subFolder/index.html and you will see
the same theme, but it should be pelt minus the pdf *and* minues the breadcrumb trail (as
defined in pelt.fv in this folder).

Restart forrest, this will clear the caches.

Now request the same pages but in the other order, i.e. request http://localhost:8888/how/perFolderThemes/subFolder/index.html
first and you will see the correct theme (pelt minus breadcrumbs and PDF), then request http://localhost:8888/how/perFolderThemes/index.html
and you see the same theme (it should be pelt minus pdf, but with the breadcrumbs).

It looks to me like the locationmap cache is being fooled into thinking the first request
match is the one needed. I don't think the error is in the locationmap but rather in the way
the dispatcher generates the theme. However, I have not done any detective work to verify

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

View raw message