requires authentication (OFBIZ-11349) Thanks: Michael for reporting a possible issue when only commenting the "stream" request-map in commonext controller. And Jacopo to suggest to require authentication (after suggesting to comment out) It should be also noted that when the CSRF defense implementation will be in place, all XSS vulnerabilities w/o authentication will not longer be possible. Because then all requests shall contains a CSRF token.
54 lines
2.1 KiB
XML
54 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns="http://ofbiz.apache.org/Site-Conf" xsi:schemaLocation="http://ofbiz.apache.org/Site-Conf http://ofbiz.apache.org/dtds/site-conf.xsd">
|
|
<description>General Application CommonExt Configuration File</description>
|
|
|
|
<!-- Request Mappings -->
|
|
|
|
<request-map uri="deleteSystemInfoNote">
|
|
<security https="true" auth="true"/>
|
|
<event type="service" invoke="deleteSystemInfoNote"/>
|
|
<response name="success" type="view-last"/>
|
|
</request-map>
|
|
|
|
<request-map uri="deleteAllSystemNotes">
|
|
<security https="true" auth="true"/>
|
|
<event type="service" invoke="deleteAllSystemNotes"/>
|
|
<response name="success" type="view-last"/>
|
|
</request-map>
|
|
|
|
<request-map uri="createSystemInfoNote">
|
|
<security https="true" auth="true"/>
|
|
<event type="service" invoke="createSystemInfoNote"/>
|
|
<response name="success" type="view-last"/>
|
|
</request-map>
|
|
|
|
<request-map uri="stream">
|
|
<security https="true" auth="true"/>
|
|
<event type="java" path="org.apache.ofbiz.content.data.DataEvents" invoke="serveObjectData"/>
|
|
<response name="success" type="none"/>
|
|
<response name="error" type="view" value="error"/>
|
|
<response name="io-error" type="none"/>
|
|
</request-map>
|
|
|
|
</site-conf>
|