Fix for security hole I have introduced while working on the Ajax autocompleter fields.

This is a temporary approach that can be improved.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2008-05-23 20:57:27 +00:00
parent 81052be83a
commit 1d44046832
4 changed files with 59 additions and 1 deletions
@@ -28,6 +28,8 @@ under the License.
<description>Example Component Site Configuration File</description>
<owner>Copyright 2001-2008 The Apache Software Foundation</owner>
<handler name="bsf" type="request" class="org.ofbiz.webapp.event.BsfEventHandler"/>
<!--
These can be used to return the reports as views; make sure the classes are compiled and available
<handler name="datavision" type="view" class="org.ofbiz.webapp.view.DataVisionViewHandler"/>
@@ -154,6 +156,12 @@ under the License.
<response name="success" type="view" value="EditExampleFeatureExampleAppls"/>
<response name="error" type="view" value="EditExampleFeatureExampleAppls"/>
</request-map>
<request-map uri="findExampleFeatures">
<security https="true" auth="true"/>
<event type="bsf" path="/WEB-INF/actions/includes/" invoke="findExampleFeatures.bsh"/>
<response name="success" type="view" value="ajaxAutocompleteOptions"/>
<response name="error" type="view" value="ajaxAutocompleteOptions"/>
</request-map>
<request-map uri="FormWidgetExamples"><security https="true" auth="true"/><response name="success" type="view" value="FormWidgetExamples"/></request-map>