[HippoCMS-scm] [Git][cms-community/hippo-jackrabbit] Pushed new tag jackrabbit-2.8.4
GitLab Mirror pushed new tag jackrabbit-2.8.4 at cms-community / hippo-jackrabbit ___ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn
[HippoCMS-scm] [Git][cms-community/hippo-project-archetype][master] 2 commits: ARCHE-521 remove redundant web.xml for essentials webapp
Marijan Milicevic pushed to branch master at cms-community / hippo-project-archetype Commits: 33604eae by Bert Leunis at 2016-12-20T10:11:49+01:00 ARCHE-521 remove redundant web.xml for essentials webapp - - - - - efe4aae3 by Marijan Milicevic at 2017-01-23T12:44:43+01:00 Merge branch master into feature/ARCHE-521 - - - - - 1 changed file: - − src/main/resources/archetype-resources/essentials/src/main/webapp/WEB-INF/web.xml Changes: = src/main/resources/archetype-resources/essentials/src/main/webapp/WEB-INF/web.xml deleted = --- a/src/main/resources/archetype-resources/essentials/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - -http://java.sun.com/xml/ns/javaee; - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; - xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd; - version="3.0" - id="essentials"> - - essentials-webapp - - org.onehippo.cms7.essentials.rest.config.RestServletListener - - -contextConfigLocation -classpath:applicationContext.xml - - - org.springframework.web.context.ContextLoaderListener - - -REST -REST - org.onehippo.cms7.essentials.servlet.RestServlet -1 - - -REST -/rest/* - - -404 -/WEB-INF/jsp/errors/404.jsp - - -500 -/WEB-INF/jsp/errors/500.jsp - - - -/WEB-INF/jsp/index.jsp - - View it on GitLab: https://code.onehippo.org/cms-community/hippo-project-archetype/compare/096aba0dad6d0ff530cf29080922c52b6cebdc02...efe4aae3a8b171b45bd703d46c292c868157d3e3 ___ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn
[HippoCMS-scm] [Git][cms-community/hippo-project-archetype][feature/ARCHE-521] 3 commits: ARCHE-519 update link to documentation page
Marijan Milicevic pushed to branch feature/ARCHE-521 at cms-community / hippo-project-archetype Commits: 99962fa2 by Bert Leunis at 2016-12-13T16:07:47+01:00 ARCHE-519 update link to documentation page - - - - - 096aba0d by Tobias Jeger at 2017-01-09T16:02:32+01:00 ARCHE-16 Update copyright year of NOTICE file to 2017 - - - - - efe4aae3 by Marijan Milicevic at 2017-01-23T12:44:43+01:00 Merge branch master into feature/ARCHE-521 - - - - - 2 changed files: - NOTICE - src/main/resources/archetype-resources/conf/context.xml Changes: = NOTICE = --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ Hippo CMS7 Project Archetype -Copyright 2010-2016 Hippo B.V., Amsterdam, The Netherlands (http://www.onehippo.com/) +Copyright 2010-2017 Hippo B.V., Amsterdam, The Netherlands (http://www.onehippo.com/) This product includes software developed by: Hippo B.V., Amsterdam, The Netherlands (http://www.onehippo.com/); = src/main/resources/archetype-resources/conf/context.xml = --- a/src/main/resources/archetype-resources/conf/context.xml +++ b/src/main/resources/archetype-resources/conf/context.xml @@ -15,7 +15,7 @@ --> + see: https://www.onehippo.org/library/development/create-a-selenium-test-case.html --> View it on GitLab: https://code.onehippo.org/cms-community/hippo-project-archetype/compare/33604eaeac8b88742014a89488030ad6b18cf127...efe4aae3a8b171b45bd703d46c292c868157d3e3 ___ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn
[HippoCMS-scm] [Git][cms-community/hippo-essentials] Deleted branch bugfix/ESSENTIALS-979
Bert Leunis deleted branch bugfix/ESSENTIALS-979 at cms-community / hippo-essentials ___ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn
[HippoCMS-scm] [Git][cms-community/hippo-site-toolkit][feature/caching-psp1] HSTTWO-3881 improve logging in case of a repo exception
Ard Schrijvers pushed to branch feature/caching-psp1 at cms-community / hippo-site-toolkit Commits: 98ab2396 by Ard Schrijvers at 2017-01-23T13:38:27+01:00 HSTTWO-3881 improve logging in case of a repo exception - - - - - 1 changed file: - components/core/src/main/java/org/hippoecm/hst/core/container/DefaultRequestInfoCacheKeyFragmentCreator.java Changes: = components/core/src/main/java/org/hippoecm/hst/core/container/DefaultRequestInfoCacheKeyFragmentCreator.java = --- a/components/core/src/main/java/org/hippoecm/hst/core/container/DefaultRequestInfoCacheKeyFragmentCreator.java +++ b/components/core/src/main/java/org/hippoecm/hst/core/container/DefaultRequestInfoCacheKeyFragmentCreator.java @@ -104,7 +104,11 @@ public class DefaultRequestInfoCacheKeyFragmentCreator implements RequestInfoCac webFilesAntiCacheValue = antiCacheValue; return antiCacheValue; } catch (RepositoryException e) { -log.warn("Cannot get anti-cache value. Use cache key without it."); +if (log.isDebugEnabled()) { +log.warn("Cannot get anti-cache value. Use cache key without it.", e); +} else { +log.warn("Cannot get anti-cache value. Use cache key without it : {}", e.toString()); +} antiCacheValue = Optional.empty(); webFilesAntiCacheValue = antiCacheValue; return antiCacheValue; View it on GitLab: https://code.onehippo.org/cms-community/hippo-site-toolkit/commit/98ab239698a20736363369dbd763dc15e509618f ___ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn
[HippoCMS-scm] [Git][cms-community/hippo-essentials][feature/ESSENTIALS-1038] ESSENTIALS-1038 deprecated the static method
Bert Leunis pushed to branch feature/ESSENTIALS-1038 at cms-community / hippo-essentials Commits: e55c2c57 by Bert Leunis at 2017-01-23T14:30:49+01:00 ESSENTIALS-1038 deprecated the static method - - - - - 3 changed files: - components/hst/src/main/java/org/onehippo/cms7/essentials/components/CommonComponent.java - components/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsBlogAuthorPostsComponent.java - components/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsListComponent.java Changes: = components/hst/src/main/java/org/onehippo/cms7/essentials/components/CommonComponent.java = --- a/components/hst/src/main/java/org/onehippo/cms7/essentials/components/CommonComponent.java +++ b/components/hst/src/main/java/org/onehippo/cms7/essentials/components/CommonComponent.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2015 Hippo B.V. (http://www.onehippo.com) + * Copyright 2014-2017 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -224,6 +224,7 @@ public abstract class CommonComponent extends BaseHstComponent { * * @param path document (or folder) path relative to site-root * @return bean identified by path. Site root bean if path empty or no corresponding bean. + * @deprecated use the non-static goGetScopeBean instead. */ public static HippoBean getScopeBean(final String path) { final HstRequestContext context = RequestContextProvider.get(); @@ -241,8 +242,26 @@ public abstract class CommonComponent extends BaseHstComponent { return siteBean; } +/** + * Find HippoBean for given path. If path is null or empty, site root bean will be returned. + * + * @param path document (or folder) path relative to site-root. + * @return bean identified by path. Site root bean if path empty or no corresponding bean. + */ public HippoBean doGetScopeBean(final String path) { -return getScopeBean(path); +final HstRequestContext context = RequestContextProvider.get(); +final HippoBean siteBean = context.getSiteContentBaseBean(); + +if (!Strings.isNullOrEmpty(path)) { +final String myPath = PathUtils.normalizePath(path); +log.debug("Looking for bean {}", myPath); +HippoBean scope = siteBean.getBean(myPath); +if (scope != null) { +return scope; +} +log.warn("Bean was null for selected path: {}", myPath); +} +return siteBean; } public int getAnyIntParameter(HstRequest request, String parameter, int defaultValue) { = components/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsBlogAuthorPostsComponent.java = --- a/components/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsBlogAuthorPostsComponent.java +++ b/components/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsBlogAuthorPostsComponent.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2015 Hippo B.V. (http://www.onehippo.com) + * Copyright 2014-2017 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. = components/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsListComponent.java = --- a/components/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsListComponent.java +++ b/components/hst/src/main/java/org/onehippo/cms7/essentials/components/EssentialsListComponent.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2015 Hippo B.V. (http://www.onehippo.com) + * Copyright 2014-2017 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. View it on GitLab: https://code.onehippo.org/cms-community/hippo-essentials/commit/e55c2c5770786d27de977febf56101c8ac70fa0b ___ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn
[HippoCMS-scm] [Git][cms-community/hippo-repository][feature/REPO-1612] REPO-1612: Adding startup log messages.
Woonsan Ko pushed to branch feature/REPO-1612 at cms-community / hippo-repository Commits: cbb239a3 by Woonsan Ko at 2017-01-23T10:47:07-05:00 REPO-1612: Adding startup log messages. - - - - - 1 changed file: - servlets/src/main/java/org/hippoecm/repository/RepositoryServlet.java Changes: = servlets/src/main/java/org/hippoecm/repository/RepositoryServlet.java = --- a/servlets/src/main/java/org/hippoecm/repository/RepositoryServlet.java +++ b/servlets/src/main/java/org/hippoecm/repository/RepositoryServlet.java @@ -524,6 +524,9 @@ public class RepositoryServlet extends HttpServlet { } private void initializeRepository() throws RepositoryException { +final long beginMillisec = System.currentTimeMillis(); +long endMillisec = -1L; + try { // get the local embedded repository repository = HippoRepositoryFactory.getHippoRepository(storageLocation); @@ -560,7 +563,7 @@ public class RepositoryServlet extends HttpServlet { } }, RepositoryClusterService.class); -log.info("Repository has been successfully initialized."); +endMillisec = System.currentTimeMillis(); } catch (MalformedURLException ex) { log.error("Repository initialization failure. MalformedURLException exception: " + bindingAddress, ex); throw new RepositoryException("RemoteException: " + ex.getMessage()); @@ -568,6 +571,15 @@ public class RepositoryServlet extends HttpServlet { log.error("Repository initialization failure. Generic remoting exception: " + bindingAddress, ex); throw new RepositoryException("RemoteException: " + ex.getMessage()); } + +if (endMillisec != -1L) { +final long laps = endMillisec - beginMillisec; +System.out.println("Hippo Repository startup in " + laps + " ms"); +log.info("Hippo Repository startup in {} ms", laps); +} else { +System.err.println("Hippo Repository fails to startup. Please check the logs."); +log.error("Hippo Repository fails to startup. Please check the logs."); +} } private class RepositoryInitializationRunner implements Runnable { View it on GitLab: https://code.onehippo.org/cms-community/hippo-repository/commit/cbb239a306fbdcfd5e72095ba83961b9976bdd45 ___ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn
[HippoCMS-scm] [Git][cms-community/hippo-plugin-taxonomy] Pushed new branch bugfix/HIPPLUG-1427
Woonsan Ko pushed new branch bugfix/HIPPLUG-1427 at cms-community / hippo-plugin-taxonomy ___ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn