|
From: Chris W. <ch...@cw...> - 2002-02-04 13:15:45
|
On Mon, 2002-02-04 at 07:10, Ewa...@ap... wrote:
> I want to use the Common-Handler and have a little problem with
> the method search.
>
> I wrote a new Handler and tried to use the property skip_security.
> So I overwrote the method _search_build_and_run. At
> fetch_object I set value 1 to the skip_security property. In
> the iterator hash was the value of the _skip_iterator key 1.
> It works.
>
> In step 2 I overwrote the method MY_SEARCH_RESULTS_PAGED
> (return 1). This retrieve no entries. In the iterator hash the
> value of the _skip_iterator key was undef. I think that is the
> reason I don't retrieve an result.
You're probably correct. If you set SPOPS->DEBUG to 1 and watch your
error log, the fetch_object() method of SPOPS::Iterator::DBI should let
you know when it catches a security exception.
You can check your theory by removing SPOPS::Secure from the 'isa'
property in the spops.perl file, restarting the server and re-running
the search. However, removing security is probably not a permanent
option for you.
> Where do I have to set the skip_security property using the
> Common-Handler?
Ah, good question. Currently, you can't without hacking it yourself.
However, I just committed to CVS a change to OpenInteract::CommonHandler
which allows you to define something like:
sub MY_SEARCH_ADDITIONAL_PARAMETERS {
return { skip_security => 1 }
}
This will be in the next version of OI.
Chris
--
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988.
|