Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-1566

Catalog site name parametre is mandatory when a project has the workspaces plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.10.14, 2.13.2, 2.14.0
    • None
    • None
    • None

      Environment:
      Ametys with Workspaces plugin

      Steps to reproduce bug:
      -Leave the catalog site name field empty in the BO's admin conf

      Bug:
      Loads of the following logs (20GB of logs per day):

      2023-09-21 17:19:57,190 ERROR [org.ametys.core.right.RightManager] (http-nio-8080-exec-40;/generate/mycapi/_plugins/front-edition/servercomm/messages.xml) An error occured with controller 'org.amety
      s.plugins.workspaces.project.rights.accesscontroller.CatalogNewsAccessController' for object '/ametys-internal:sites/mycapi/ametys-internal:sitemaps/fr/tout-l-agenda' (page://981ce49c-8c2a-43f6-b51e
      -db059d5b15ee). Thus, this controller will be ignored.
      java.lang.IllegalArgumentException: Unknown site ''. The global Ametys configuration is invalid for the parameter 'workspaces.catalog.site.name'
              at org.ametys.plugins.workspaces.project.ProjectManager.getCatalogSiteName(ProjectManager.java:2077)
              at org.ametys.plugins.workspaces.project.rights.accesscontroller.CatalogNewsAccessController._isCatalogNewsPage(CatalogNewsAccessController.java:74)
              at org.ametys.plugins.workspaces.project.rights.accesscontroller.CatalogNewsAccessController.isSupported(CatalogNewsAccessController.java:69)
              at org.ametys.core.right.RightManager._getAccessResults(RightManager.java:431)
              at org.ametys.core.right.RightManager._hasRightOrRead(RightManager.java:347)
              at org.ametys.core.right.RightManager._hasRight(RightManager.java:323)
              at org.ametys.core.right.RightManager.hasRight(RightManager.java:289)
              at org.ametys.core.right.RightManager.currentUserHasRight(RightManager.java:273)
              at org.ametys.plugins.frontedition.AmetysFrontEditionHelper.hasFrontEditionRight(AmetysFrontEditionHelper.java:630)
              at org.ametys.plugins.frontedition.DispatchGenerator._setContextInRequestAttributes(DispatchGenerator.java:69)
              at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:130)
              at org.ametys.core.ui.dispatcher.DispatchGenerator.generate(DispatchGenerator.java:95)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
              at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
              at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
              at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
              at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:300)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:49)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:348)
              at org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:60)
              at org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINode.invoke(RedirectToURINode.java:70)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
              at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
              at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
              at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
      

            Unassigned Unassigned
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: