I cannot tell you exactly how it works, but I think you're right about
the chain sequence. Each filter picks out the request it is matching
and does its work. The "cms" filter at the end of the chain will (most
likely) try to load a cms page for the specified url. That's why we
added our bypass there so we would get our standard jsp in the file
system instead of the cms page. The security filter and so on are
still applied in this case.
-will
On 07.11.2008, at 13:39, Matteo Pelucco wrote:
Will Scheidegger ha scritto:
We have a few jsp pages we access directly. For this, we placed
them all in a folder and added a bypass to config:/server/filters/
cms/bypasses
Have a look there. It's pretty self-explaining.
Thanks will..
so, the idea behind filters and bypasses is something like a chain,
correct me if I am wrong.
Imagine this configuration:
Filter A
- bypass "/docroot"
Filter B
- bypass "/myDirectFolderPage"
Filter C (no bypasses)
Calling "/myFolder/myPage" will trigger A,B,C (in this sequence)
Calling "/docroot/myCss.css" will trigger B,C (in this sequence)
Calling "/myDirectFolderPage/*" will trigger A,C (in this sequence)
It is correct?
And: what the "class" property stand for?
? info.magnolia.voting.voters.URIStartsWithVoter ?
And (finally): there is also the attribute "not": it is a normal
boolean not, isn't it?
Thanks again, really appreciated!
M.
HTH,
will
On 07.11.2008, at 13:22, Matteo Pelucco wrote:
Hi all..
can anybody explain a bit about filter bypasses?
Tnx..
Matteo
Matteo Pelucco ha scritto:
Hi all...
I have a suggestion to ask you. Maybe 2... :-)
I need to migrate content from an existing external database (non
JCR) to a Magnolia repository.
So, I've created a filter.
My question is: where (in what position / order) place this filter?
For now I've placed it after multipartRequest one (because I need
to store some data...it is correct?)
Considering that:
1) I don't want to place this script on everyone control.. I need
to implement a sort of authentication, so that only trusted users
(admin) can import data
2) I don't want to publish this script on a public instance
Thanks in advance
Matteo
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------