From 8894513c28d4ffe9305c4ae68ff39e8db16dd4f6 Mon Sep 17 00:00:00 2001 From: "Benito J. Gonzalez" Date: Mon, 9 Sep 2019 17:07:16 -0700 Subject: [PATCH 1/2] fix: add overrides context support --- .../contextOverrides/overridesContext.xml | 23 +++++++++++++++++++ src/main/webapp/WEB-INF/web.xml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/properties/contextOverrides/overridesContext.xml diff --git a/src/main/resources/properties/contextOverrides/overridesContext.xml b/src/main/resources/properties/contextOverrides/overridesContext.xml new file mode 100644 index 00000000..35817d0f --- /dev/null +++ b/src/main/resources/properties/contextOverrides/overridesContext.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index aec8ffa3..082cfb66 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -37,7 +37,7 @@ contextConfigLocation - /WEB-INF/context/applicationContext.xml + /WEB-INF/context/applicationContext.xml,classpath:/properties/contextOverrides/*.xml From 82c2956c620a746c9a7b20eff6282846d2bf9d92 Mon Sep 17 00:00:00 2001 From: "Benito J. Gonzalez" Date: Mon, 9 Sep 2019 18:20:28 -0700 Subject: [PATCH 2/2] fix: add overrides context deps --- pom.xml | 36 +++++++++---- .../portlet/proxy/ProxyPortletController.java | 4 +- .../proxy/search/AnchorSearchStrategy.java | 10 ++-- .../proxy/search/DefaultSearchService.java | 6 +-- .../proxy/search/GsaSearchStrategy.java | 10 ++-- .../portlet/proxy/search/ISearchService.java | 2 +- .../portlet/proxy/search/ISearchStrategy.java | 4 +- .../WEB-INF/context/applicationContext.xml | 53 +++++++++++++++---- 8 files changed, 88 insertions(+), 37 deletions(-) diff --git a/pom.xml b/pom.xml index e60ebd46..523ba0a3 100644 --- a/pom.xml +++ b/pom.xml @@ -38,11 +38,12 @@ 2.0 1.0.44 2.5 - 4.1.4.RELEASE + 4.3.25.RELEASE 1.0.13 1.7.5 1.9.5 1.1.2 + 5.8.0 @@ -100,6 +101,24 @@ cas-client-core ${cas.version} + + org.jasig.portal + uPortal-api-search + ${uportal-libs.version} + + + org.jasig.portal + uPortal-spring + ${uportal-libs.version} + + org.jasig.resourceserver resource-server-content @@ -156,11 +175,6 @@ standard ${jstl.version} - - org.jasig.portal - uportal-search-api - 4.0.10 - @@ -299,7 +313,11 @@ org.jasig.portal - uportal-search-api + uPortal-api-search + + + org.jasig.portal + uPortal-spring @@ -407,11 +425,11 @@ - 1.6 + 1.8 - commons-collections:commons-collections:[3.0,3.2.1],[4.0] + commons-collections:commons-collections:[3.2.1,4.0] diff --git a/src/main/java/org/jasig/portlet/proxy/mvc/portlet/proxy/ProxyPortletController.java b/src/main/java/org/jasig/portlet/proxy/mvc/portlet/proxy/ProxyPortletController.java index 6f95b72b..faf2bc67 100644 --- a/src/main/java/org/jasig/portlet/proxy/mvc/portlet/proxy/ProxyPortletController.java +++ b/src/main/java/org/jasig/portlet/proxy/mvc/portlet/proxy/ProxyPortletController.java @@ -41,8 +41,8 @@ import javax.servlet.http.HttpServletResponse; import org.apache.commons.io.IOUtils; -import org.jasig.portal.search.SearchConstants; -import org.jasig.portal.search.SearchResults; +import org.apereo.portal.search.SearchConstants; +import org.apereo.portal.search.SearchResults; import org.jasig.portlet.proxy.search.ISearchService; import org.jasig.portlet.proxy.service.IContentRequest; import org.jasig.portlet.proxy.service.IContentResponse; diff --git a/src/main/java/org/jasig/portlet/proxy/search/AnchorSearchStrategy.java b/src/main/java/org/jasig/portlet/proxy/search/AnchorSearchStrategy.java index 7ccf21ee..35e700f1 100644 --- a/src/main/java/org/jasig/portlet/proxy/search/AnchorSearchStrategy.java +++ b/src/main/java/org/jasig/portlet/proxy/search/AnchorSearchStrategy.java @@ -27,11 +27,11 @@ import javax.portlet.PortletMode; import javax.portlet.WindowState; -import org.jasig.portal.search.PortletUrl; -import org.jasig.portal.search.PortletUrlParameter; -import org.jasig.portal.search.PortletUrlType; -import org.jasig.portal.search.SearchRequest; -import org.jasig.portal.search.SearchResult; +import org.apereo.portal.search.PortletUrl; +import org.apereo.portal.search.PortletUrlParameter; +import org.apereo.portal.search.PortletUrlType; +import org.apereo.portal.search.SearchRequest; +import org.apereo.portal.search.SearchResult; import org.jasig.portlet.proxy.search.util.SearchUtil; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; diff --git a/src/main/java/org/jasig/portlet/proxy/search/DefaultSearchService.java b/src/main/java/org/jasig/portlet/proxy/search/DefaultSearchService.java index fc9f2497..e80bc4b7 100644 --- a/src/main/java/org/jasig/portlet/proxy/search/DefaultSearchService.java +++ b/src/main/java/org/jasig/portlet/proxy/search/DefaultSearchService.java @@ -25,9 +25,9 @@ import javax.portlet.Event; import javax.portlet.EventRequest; import javax.portlet.PortletPreferences; -import org.jasig.portal.search.SearchRequest; -import org.jasig.portal.search.SearchResult; -import org.jasig.portal.search.SearchResults; +import org.apereo.portal.search.SearchRequest; +import org.apereo.portal.search.SearchResult; +import org.apereo.portal.search.SearchResults; import org.jsoup.nodes.Document; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/org/jasig/portlet/proxy/search/GsaSearchStrategy.java b/src/main/java/org/jasig/portlet/proxy/search/GsaSearchStrategy.java index 544ec859..71f4c30c 100644 --- a/src/main/java/org/jasig/portlet/proxy/search/GsaSearchStrategy.java +++ b/src/main/java/org/jasig/portlet/proxy/search/GsaSearchStrategy.java @@ -42,11 +42,11 @@ import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; -import org.jasig.portal.search.PortletUrl; -import org.jasig.portal.search.PortletUrlParameter; -import org.jasig.portal.search.PortletUrlType; -import org.jasig.portal.search.SearchRequest; -import org.jasig.portal.search.SearchResult; +import org.apereo.portal.search.PortletUrl; +import org.apereo.portal.search.PortletUrlParameter; +import org.apereo.portal.search.PortletUrlType; +import org.apereo.portal.search.SearchRequest; +import org.apereo.portal.search.SearchResult; import org.jasig.portlet.proxy.search.util.SearchUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/org/jasig/portlet/proxy/search/ISearchService.java b/src/main/java/org/jasig/portlet/proxy/search/ISearchService.java index 8e8e0a4e..0991241a 100644 --- a/src/main/java/org/jasig/portlet/proxy/search/ISearchService.java +++ b/src/main/java/org/jasig/portlet/proxy/search/ISearchService.java @@ -20,7 +20,7 @@ import javax.portlet.EventRequest; -import org.jasig.portal.search.SearchResults; +import org.apereo.portal.search.SearchResults; import org.jsoup.nodes.Document; public interface ISearchService { diff --git a/src/main/java/org/jasig/portlet/proxy/search/ISearchStrategy.java b/src/main/java/org/jasig/portlet/proxy/search/ISearchStrategy.java index 39744e71..14140d55 100644 --- a/src/main/java/org/jasig/portlet/proxy/search/ISearchStrategy.java +++ b/src/main/java/org/jasig/portlet/proxy/search/ISearchStrategy.java @@ -22,8 +22,8 @@ import javax.portlet.EventRequest; -import org.jasig.portal.search.SearchRequest; -import org.jasig.portal.search.SearchResult; +import org.apereo.portal.search.SearchRequest; +import org.apereo.portal.search.SearchResult; import org.jsoup.nodes.Document; public interface ISearchStrategy { diff --git a/src/main/webapp/WEB-INF/context/applicationContext.xml b/src/main/webapp/WEB-INF/context/applicationContext.xml index 8cf504f8..c35fe889 100644 --- a/src/main/webapp/WEB-INF/context/applicationContext.xml +++ b/src/main/webapp/WEB-INF/context/applicationContext.xml @@ -33,20 +33,53 @@ - - - - + + + + + classpath:datasource.properties + classpath:configuration.properties + + file:${portal.home}/global.properties + file:${portal.home}/web-proxy.properties + + + - + user-agent - + .*text/html.* @@ -137,14 +170,14 @@ - + - + - +