On 26 August 2013 15:54, Drover, Matt <mattdro...@mun.ca> wrote:

> I assume it is a built in feature that prevents spam, but the feedback
> page cannot be accessed directly, you need to reach it from a link on your
> site. It checks the referrer header.
>

That's interesting, but then I would have expected the feedback form to
work after I followed the 'Contact Us' link.

> ****
>
> ** **
>
> I disabled that check in my code by changing SendFeedbackaction.java ****
>
> **
>

I see:

./dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/SendFeedbackAction.java

        if ((fromPage == null) || ((fromPage.indexOf(basicHost) == -1) &&
(!validReferral)))
        {
            // N.B. must use old message catalog because Cocoon i18n is
only available to transformed pages.
            throw new
AuthorizeException(I18nUtil.getMessage("feedback.error.forbidden"));
        }

With that commented out, mail is sent.

Thanks, Matt.

Sean
--
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to