I'm not 100% whether this is related but the feedback form is known to
break when the hostname is short.

This bug is logged here:
https://jira.duraspace.org/browse/DS-1089

best regards,

Bram Luyten

-- 
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
www.atmire.com<http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=email&utm_campaign=braml>


On Tue, Aug 27, 2013 at 8:07 AM, Sean Carte <sean.ca...@gmail.com> wrote:

>
> 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
>
------------------------------------------------------------------------------
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