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

An error occured when displaying service catalog with unknown manager

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0, 2.0.0
    • Component/s: Projects
    • Labels:
      None

      Description

      I download a repository from a customer and my users are not the same.
      When I display the catalog in my website I get an error

      Caused by: java.lang.NullPointerException
      	at org.ametys.plugins.core.user.UserHelper.saxUser(UserHelper.java:398)
      	at org.ametys.plugins.workspaces.project.generators.ProjectsCatalogueGenerator.lambda$_saxProject$2(ProjectsCatalogueGenerator.java:290)
      	at org.ametys.core.util.LambdaUtils.lambda$wrapConsumer$1(LambdaUtils.java:142)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
      	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      	at org.ametys.plugins.workspaces.project.generators.ProjectsCatalogueGenerator._saxProject(ProjectsCatalogueGenerator.java:290)
      	at org.ametys.plugins.workspaces.project.generators.ProjectsCatalogueGenerator._saxTree(ProjectsCatalogueGenerator.java:204)
      	at org.ametys.plugins.workspaces.project.generators.ProjectsCatalogueGenerator._saxCategory(ProjectsCatalogueGenerator.java:226)
      	at org.ametys.plugins.workspaces.project.generators.ProjectsCatalogueGenerator._saxTree(ProjectsCatalogueGenerator.java:211)
      	at org.ametys.plugins.workspaces.project.generators.ProjectsCatalogueGenerator.generate(ProjectsCatalogueGenerator.java:160)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
      	... 65 more
      

      If I change manually the manager of the projects it works fine.

        Attachments

          Activity

            People

            • Assignee:
              glefebvre Grégory Lefebvre (Inactive)
              Reporter:
              fravetier Frederic Ravetier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: