gpt4 book ai didi

java - 限制 dspace 中的访问页面反馈?

转载 作者:行者123 更新时间:2023-12-01 21:31:21 25 4
gpt4 key购买 nike

我使用的是5.5版本的DSpace

和界面XMLUI

大家对菜鸟问题感到抱歉,众所周知,IT 世界中的攻击和垃圾邮件很常见,您可以将 dspace 的访问页面“/反馈”限制为仅允许经过身份验证的用户。 DSpace 本身有某种针对可能导致系统瘫痪的攻击的保护措施吗?

最佳答案

要将/feedback 页面限制为经过身份验证的用户,您需要编辑 /aspects/ArtifactBrowser/sitemap.xmap。将 AuthenticatedSelector 添加到“反馈”匹配器:

<map:match pattern="feedback">
<map:select type="AuthenticatedSelector">
<map:when test="eperson">
<map:act type="SendFeedbackAction">
<map:transform type="FeedbackForm">
<map:parameter name="comments" value="{comments}"/>
<map:parameter name="email" value="{email}"/>
<map:parameter name="page" value="{page}"/>
</map:transform>
<map:serialize type="xml"/>
</map:act>
<map:transform type="FeedbackSent"/>
</map:when>
<map:otherwise>
<map:act type="StartAuthentication"/>
</map:otherwise>
</map:select>
<map:serialize type="xml"/>
</map:match>

otherwise block 会将未经身份验证的用户重定向到登录页面。

关于java - 限制 dspace 中的访问页面反馈?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37397993/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com