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.
I disabled that check in my code by changing SendFeedbackaction.java
Matthew Drover
Programmer Consultant
Immersive Technology
Distance Education, Learning and Teaching Support
Memorial University of Newfoundland
From: Sean Carte [mailto:sean.ca...@gmail.com]
Sent: Monday, August 26, 2013 10:42 AM
To: dspace-tech
Subject: [Dspace-tech] Feedback Link Error
Our 'Send Feedback' link produces the following error:
org.dspace.authorize.AuthorizeException:
The feedback mail page may only be invoked from another DSpace page
Cocoon stacktrace [hide]
Sitemap: error invoking action
context:/resource://aspects/ViewArtifacts/sitemap.xmap - 193:68
<map:act type="SendFeedbackAction">
context:/resource://aspects/ViewArtifacts/sitemap.xmap - 192:55
<map:match>
context:/jndi:/localhost/aspects/aspects.xmap - 89:72
<map:mount>
context:/jndi:/localhost/aspects/aspects.xmap - 79:34
<map:select type="parameter">
context:/jndi:/localhost/aspects/aspects.xmap - 78:36
<map:match type="AspectMatcher">
context:/jndi:/localhost/sitemap.xmap - 478:100
<map:mount>
context:/jndi:/localhost/sitemap.xmap - 477:49
<map:match>
context:/resource://aspects/BrowseArtifacts/sitemap.xmap - 101:40
<map:serialize type="xml">
context:/resource://aspects/BrowseArtifacts/sitemap.xmap - 44:47
<map:transform type="Navigation">
context:/resource://aspects/BrowseArtifacts/sitemap.xmap - 38:28
<map:generate>
context:/resource://aspects/Administrative/sitemap.xmap - 1037:31
<map:serialize type="xml">
context:/resource://aspects/Administrative/sitemap.xmap - 282:38
<map:transform type="Navigation">
context:/resource://aspects/Administrative/sitemap.xmap - 281:44
<map:transform type="SystemwideAlerts">
context:/resource://aspects/Administrative/sitemap.xmap - 279:19
<map:generate>
context:/resource://aspects/EPerson/sitemap.xmap - 302:31
<map:serialize type="xml">
context:/resource://aspects/EPerson/sitemap.xmap - 107:38
<map:transform type="Navigation">
context:/resource://aspects/EPerson/sitemap.xmap - 96:19
<map:generate>
context:/resource://aspects/Submission/sitemap.xmap - 277:27
<map:serialize>
context:/resource://aspects/Submission/sitemap.xmap - 257:26
<map:generate>
context:/resource://aspects/Statistics/sitemap.xmap - 586:40
<map:serialize type="xml">
context:/resource://aspects/Statistics/sitemap.xmap - 104:47
<map:transform type="Navigation">
context:/resource://aspects/Statistics/sitemap.xmap - 103:19
<map:generate>
context:/resource://aspects/AtmireModules/sitemap.xmap - 82:31
<map:serialize type="xml">
context:/resource://aspects/AtmireModules/sitemap.xmap - 56:19
<map:generate>
context:/resource://aspects/Workflow/sitemap.xmap - 161:27
<map:serialize>
context:/resource://aspects/Workflow/sitemap.xmap - 145:26
<map:generate>
context:/resource://aspects/Discovery/sitemap.xmap - 186:40
<map:serialize type="xml">
context:/resource://aspects/Discovery/sitemap.xmap - 76:47
<map:transform type="Navigation">
context:/resource://aspects/Discovery/sitemap.xmap - 64:28
<map:generate>
context:/jndi:/localhost/aspects/aspects.xmap - 85:34
<map:serialize type="xml">
context:/jndi:/localhost/aspects/aspects.xmap - 84:43
<map:transform type="PageNotFound">
context:/jndi:/localhost/aspects/aspects.xmap - 83:22
<map:generate>
context:/jndi:/localhost/themes/Reference/sitemap.xmap - 165:62
<map:serialize type="xhtml">
context:/jndi:/localhost/themes/Reference/sitemap.xmap - 162:112
<map:transform type="NamespaceFilter">
context:/jndi:/localhost/themes/Reference/sitemap.xmap - 161:106
<map:transform type="NamespaceFilter">
context:/jndi:/localhost/themes/Reference/sitemap.xmap - 155:68
<map:transform type="i18n">
context:/jndi:/localhost/themes/Reference/sitemap.xmap - 151:72
<map:transform>
context:/jndi:/localhost/themes/Reference/sitemap.xmap - 132:87
<map:transform type="IncludePageMeta">
context:/jndi:/localhost/themes/Reference/sitemap.xmap - 101:83
<map:generate type="file">
context:/jndi:/localhost/themes/Reference/sitemap.xmap - 98:49
<map:match>
context:/jndi:/localhost/themes/themes.xmap - 33:45
<map:mount>
context:/jndi:/localhost/themes/themes.xmap - 32:35
<map:match type="ThemeMatcher">
context:/jndi:/localhost/sitemap.xmap - 708:94
<map:mount>
This occurs on two of our servers, one running 3.1, the other 1.8.
I know feedback used to work on our 3.1 server, as I've received
feedback mail in the past. But I can't figure out what's gone wrong.
From other people's posts on this topic, I thought the following
settings in dspace.cfg might be relevant:
mail.server.port = 25
mail.allowed.referrers = localhost
I've tried changing the referrers setting to the IP address of the
machine.
A fresh install of 3.2 shows the same problem, so it must be my
configuration that's wrong, but where should I look?
Sean
--
This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php
------------------------------------------------------------------------------
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