Ivan, thank you for the clarification.  Your recommendation is much cleaner than my solution.

It was not apparent to me that a filter could be added to the <Context baseurl="request"> block since filters were not currently present in the block.

Thank you for your help.


On Fri, Aug 23, 2013 at 4:26 AM, helix84 <helix84@centrum.sk> wrote:
On Thu, Aug 22, 2013 at 11:53 PM, Terry Brady <twb27@georgetown.edu> wrote:
> Ivan, thanks for the explanation.  I added some log messages to the
> DSpaceAuthorizationFilter, and it is not getting executed as I navigate the
> OAI web service.

First, you need to configure the new class to be used, just follow the
bitstreamaccessFilter example.
* Add a filter using your new class into the <Filters> element below
line 175 in xoai.xml.
* Assuming you're using the default "request" context, add your new
filter into <Context baseurl="request">.

When using the oai Solr backend (default), every time you change
configuration, you ought to run "oai clean-cache". But in this case, I
think you might need to drop the oai index completely (-c) and
reimport it: "oai import -c" (that command already includes clearing
the cache).


Compulsory reading: DSpace Mailing List Etiquette

Terry Brady
Applications Programmer Analyst
Lauinger Information Technology