You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2024/04/26 08:06:05 UTC
(ofbiz-plugins) branch trunk updated: Fixed: Could not find PortalPage with portalPageId [] (OFBIZ-13071)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/trunk by this push:
new 97b499195 Fixed: Could not find PortalPage with portalPageId [] (OFBIZ-13071)
97b499195 is described below
commit 97b499195315453d1ca00fc9b19e04fde25420f6
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Fri Apr 26 10:06:12 2024 +0200
Fixed: Could not find PortalPage with portalPageId [] (OFBIZ-13071)
Avoids spider bots to clutter the logs by forcing auth. Does not make sense
W/o anyway
---
webpos/webapp/webpos/WEB-INF/controller.xml | 140 ++++++++++++++--------------
1 file changed, 70 insertions(+), 70 deletions(-)
diff --git a/webpos/webapp/webpos/WEB-INF/controller.xml b/webpos/webapp/webpos/WEB-INF/controller.xml
index 5e626f057..2f0e958a3 100644
--- a/webpos/webapp/webpos/WEB-INF/controller.xml
+++ b/webpos/webapp/webpos/WEB-INF/controller.xml
@@ -20,25 +20,25 @@
<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>Web Pos Component Site Configuration File</description>
-
+
<errorpage>component://common/webcommon/error/Error.ftl</errorpage>
-
+
<handler name="java" type="request" class="org.apache.ofbiz.webapp.event.JavaEventHandler"/>
<handler name="service" type="request" class="org.apache.ofbiz.webapp.event.ServiceEventHandler"/>
<handler name="service-multi" type="request" class="org.apache.ofbiz.webapp.event.ServiceMultiEventHandler"/>
<handler name="simple" type="request" class="org.apache.ofbiz.webapp.event.SimpleEventHandler"/>
- <handler name="groovy" type="request" class="org.apache.ofbiz.webapp.event.GroovyEventHandler"/>
+ <handler name="groovy" type="request" class="org.apache.ofbiz.webapp.event.GroovyEventHandler"/>
<handler name="jsp" type="view" class="org.apache.ofbiz.webapp.view.JspViewHandler"/>
<handler name="screen" type="view" class="org.apache.ofbiz.widget.renderer.macro.MacroScreenViewHandler"/>
<handler name="ftl" type="view" class="org.apache.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
-
+
<!-- Events run from here for the first hit in a visit -->
<firstvisit>
<event name="autoLoginCheck" type="java" path="org.apache.ofbiz.webapp.control.LoginWorker" invoke="autoLoginCheck"/>
<event name="checkTrackingCodeCookies" type="java" path="org.apache.ofbiz.marketing.tracking.TrackingCodeEvents" invoke="checkTrackingCodeCookies"/>
<event name="setDefaultStoreSettings" type="java" path="org.apache.ofbiz.product.product.ProductEvents" invoke="setDefaultStoreSettings"/>
</firstvisit>
-
+
<!-- Events to run on every request before security (chains exempt) -->
<preprocessor>
<!-- This event allows affilate/distributor entry on any page -->
@@ -48,7 +48,7 @@
<event name="checkPartnerTrackingCodeUrlParam" type="java" path="org.apache.ofbiz.marketing.tracking.TrackingCodeEvents" invoke="checkPartnerTrackingCodeUrlParam"/>
<event name="keepCartUpdated" type="java" path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="keepCartUpdated"/>
</preprocessor>
-
+
<after-login>
<event name="updateAssociatedDistributor" type="java" path="org.apache.ofbiz.ecommerce.misc.ThirdPartyEvents" invoke="updateAssociatedDistributor"/>
<event name="keepCartUpdated" type="java" path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="keepCartUpdated"/>
@@ -57,7 +57,7 @@
<!-- after login and restoring from the auto-save list, save everything to the auto-save list to handle anything that may have already been in the cart before login -->
<event name="saveCartToAutoSaveList" type="java" path="org.apache.ofbiz.order.shoppinglist.ShoppingListEvents" invoke="saveCartToAutoSaveList"/>
</after-login>
-
+
<!-- Security Mappings -->
<request-map uri="checkLogin">
<description>Verify a user is logged in.</description>
@@ -67,7 +67,7 @@
<response name="requirePasswordChange" type="view" value="requirePasswordChange"/>
<response name="error" type="view" value="login"/>
</request-map>
-
+
<request-map uri="login">
<security https="true" auth="false"/>
<event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="posLogin"/>
@@ -75,27 +75,27 @@
<response name="requirePasswordChange" type="view" value="RequirePasswordChange"/>
<response name="error" type="view" value="Login"/>
</request-map>
-
+
<request-map uri="logout">
<security https="true" auth="true"/>
<event type="java" path="org.apache.ofbiz.webapp.control.LoginWorker" invoke="logout"/>
<response name="success" type="request-redirect-noparam" value="main"/>
<response name="error" type="request-redirect-noparam" value="main"/>
</request-map>
-
+
<request-map uri="autoLogout">
<security https="true" auth="false"/>
<event type="java" path="org.apache.ofbiz.webapp.control.LoginWorker" invoke="autoLoginRemove"/>
<response name="success" type="request-redirect-noparam" value="main"/>
<response name="error" type="request-redirect-noparam" value="main"/>
</request-map>
-
+
<request-map uri="requirePasswordChange">
<security https="true" auth="false"/>
<response name="success" type="view" value="RequirePasswordChange"/>
</request-map>
<!-- End of Security Mappings -->
-
+
<!-- Common json reponse events, chain these after events to send json reponses -->
<!-- Standard json response, For security reason (OFBIZ-5409) tries to keep only the initially called service attributes -->
<request-map uri="json">
@@ -103,14 +103,14 @@
<event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="jsonResponseFromRequestAttributes"/>
<response name="success" type="none"/>
</request-map>
-
+
<request-map uri="getJSONuiLabelArray">
<security https="false" auth="false"/>
<event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="getJSONuiLabelArray"/>
<response name="success" type="none" />
<response name="error" type="none" />
</request-map>
-
+
<!-- Change theme-->
<request-map uri="selectTheme">
<security https="true" auth="true"/>
@@ -124,25 +124,25 @@
<response name="success" type="view-last" value="main"/>
<response name="error" type="request" value="main"/>
</request-map>
-
+
<!-- Request Mappings -->
<request-map uri="view">
<security https="false" auth="false"/>
<response name="success" type="view" value="main"/>
</request-map>
-
+
<request-map uri="authview">
<security https="false" auth="true"/>
<response name="success" type="view" value="main"/>
</request-map>
-
+
<request-map uri="main">
<security https="false" auth="true"/>
<event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="existsWebPosSession"/>
<response name="success" type="view" value="main"/>
<response name="error" type="view" value="Login"/>
</request-map>
-
+
<request-map uri="Login">
<security https="false" auth="false"/>
<event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="posLogin"/>
@@ -150,43 +150,43 @@
<response name="requirePasswordChange" type="view" value="RequirePasswordChange"/>
<response name="error" type="view" value="Login"/>
</request-map>
-
+
<request-map uri="Logout">
<security https="false" auth="true"/>
<event type="java" path="org.apache.ofbiz.webapp.control.LoginWorker" invoke="logout"/>
<response name="success" type="request-redirect-noparam" value="main"/>
<response name="error" type="request-redirect-noparam" value="main"/>
</request-map>
-
+
<request-map uri="ListLocales">
<security https="true" auth="false"/>
<response name="success" type="view" value="ListLocales" save-last-view="true"/>
</request-map>
-
+
<request-map uri="setSessionLocale">
<security https="false" auth="false"/>
<event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
<response name="success" type="view" value="main"/>
<response name="error" type="view" value="main"/>
</request-map>
-
+
<request-map uri="ListTimezones">
- <security https="true" auth="false"/>
+ <security https="true" auth="true"/>
<response name="success" type="view" value="ListTimezones" save-last-view="true"/>
</request-map>
-
+
<request-map uri="setSessionTimeZone">
<security https="true" auth="false"/>
<event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="setSessionTimeZone"/>
<response name="success" type="view-last" value="main"/>
<response name="error" type="request" value="main"/>
</request-map>
-
+
<request-map uri="showHelp">
<security https="true" auth="true"/>
<response name="success" type="view" value="showHelp"/>
</request-map>
-
+
<!-- User preference mapping -->
<request-map uri="setUserPreference">
<security https="true" auth="true"/>
@@ -200,7 +200,7 @@
<event type="service" invoke="setUserPreference"/>
<response name="success" type="none"/>
</request-map>
-
+
<request-map uri="help">
<security https="true" auth="true"/>
<response name="success" type="view" value="help"/>
@@ -210,262 +210,262 @@
<security https="false" auth="true"/>
<response name="success" type="view" value="ListVisualThemes"/>
</request-map>
-
+
<request-map uri="Category">
<security https="false" auth="false"/>
<response name="success" type="view" value="Category"/>
</request-map>
-
+
<request-map uri="Manager">
<security https="false" auth="true"/>
<response name="success" type="view" value="Manager"/>
</request-map>
-
+
<request-map uri="Payment">
<security https="false" auth="true"/>
<response name="success" type="view" value="Payment"/>
</request-map>
-
+
<request-map uri="CustomerAddress">
<security https="false" auth="true"/>
<response name="success" type="view" value="CustomerAddress"/>
</request-map>
-
+
<request-map uri="ShowCart">
<security https="false" auth="true"/>
<response name="success" type="view" value="ShowCart"/>
</request-map>
-
+
<request-map uri="ShowCartItemSelected">
<security https="false" auth="true"/>
<response name="success" type="view" value="ShowCartItemSelected"/>
</request-map>
-
+
<request-map uri="SearchSalesRepsList">
<security https="false" auth="true"/>
<response name="success" type="view" value="SearchSalesRepsList"/>
</request-map>
-
+
<request-map uri="SideDeepCategory">
<security https="false" auth="true"/>
<response name="success" type="view" value="SideDeepCategory"/>
</request-map>
-
+
<request-map uri="CategoryDetail">
<security https="false" auth="true"/>
<response name="success" type="view" value="CategoryDetail"/>
- </request-map>
-
+ </request-map>
+
<request-map uri="Shutdown">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="shutdown"/>
<response name="success" type="request" value="Login"/>
<response name="error" type="request" value="main"/>
</request-map>
-
+
<!-- Ajax requests -->
<request-map uri="Error">
<security https="false" auth="false"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="EmptyCart">
<security https="false" auth="false"/>
<event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="emptyCartAndClearAutoSaveList"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="GetProductType">
<security https="false" auth="true"/>
<event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="getProductType"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="GetProductAndPrice">
<security https="false" auth="false"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="getProductAndPrice"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="GetFormattedAmount">
<security https="false" auth="false"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="getFormattedAmount"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="GetFormattedProductFeaturePrice">
<security https="false" auth="false"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="getFormattedProductFeaturePrice"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="AddToCart">
<security https="false" auth="false"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="addCartItem"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="SetPartyToCart">
<security https="false" auth="false"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="setPartyToCart"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="GetShipMethods">
<security https="false" auth="false"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="getShipMethods"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="SetShipMethod">
<security https="false" auth="false"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="setShipMethod"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="UpdateCartItem">
<security https="false" auth="false"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="updateCartItem"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="DeleteCartItem">
<security https="false" auth="false"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="deleteCartItem"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="FindProducts">
<security https="false" auth="true"/>
<event type="service" invoke="findProducts"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="FindParties">
<security https="false" auth="true"/>
<event type="service" invoke="findParties"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="RemoveSalesRep">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="removeSalesRep"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="AddSalesRep">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="addSalesRep"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="PayCash">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payCash"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="PayCheck">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payCheck"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="PayGiftCard">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payGiftCard"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="PayCreditCard">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payCreditCard"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="OpenTerminal">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="openTerminal"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="CloseTerminal">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="closeTerminal"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="PromoCode">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/PromoEvents.xml" invoke="addPromoCode"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="VoidOrder">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="voidOrder"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="ModifyPrice">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="modifyPrice"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="PaidOutAndIn">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="paidOutAndIn"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="PayFinish">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payFinish"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="ClearPayment">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="clearPayment"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="CreateUpdateAddress">
<security https="false" auth="true"/>
<event type="simple" path="component://webpos/minilang/CustomerEvents.xml" invoke="createUpdateAddress"/>
<response name="success" type="request" value="json"/>
<response name="error" type="request" value="json"/>
</request-map>
-
+
<request-map uri="EditAddress">
<security https="false" auth="true"/>
<event type="groovy" path="component://webpos/src/main/groovy/org/apache/ofbiz/webpos/customer/EditAddress.groovy"/>
@@ -506,7 +506,7 @@
<event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="jsResponseFromRequest"/>
<response name="success" type="none"/>
</request-map>
-
+
<!-- View Mappings -->
<view-map name="error" type="ftl" page="component://common/webcommon/error/Error.ftl"/>
<view-map name="Error" type="screen" page="component://webpos/widget/WebPosScreens.xml#Main"/>
@@ -519,7 +519,7 @@
<view-map name="ListVisualThemes" type="screen" page="component://common/widget/LookupScreens.xml#ListVisualThemes"/>
<view-map name="help" type="screen" page="component://common/widget/CommonScreens.xml#help"/>
<view-map name="showHelp" type="screen" page="component://common/widget/HelpScreens.xml#ShowHelp"/>
-
+
<view-map name="Manager" type="screen" page="component://webpos/widget/WebPosScreens.xml#Manager"/>
<view-map name="Payment" type="screen" page="component://webpos/widget/WebPosScreens.xml#Payment"/>
<view-map name="ShowCart" type="screen" page="component://webpos/widget/CartScreens.xml#ShowCart"/>