Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-787

Impossible de créer des liens vers des UE dans des UE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.2.1, 2.3.0
    • 2.2.0
    • None
    • None

      Dans un sous programme, j'ai des parcours puis des semetres puis une liste d'UE avec des UE et des listes d'UE comportant d'autres UE. (Plus clair avec l'image)

      Il m'est impossible de faire des liens vers les UE "Anglais", "Langue vivante".

      J'utilise :

      <a href="{resolver:resolve('odf', concat(@id, ';', /view/content/@id))}">...</a>
      

      où @id est l'id de mon UE
      où /view/content/@id est l'id de mon sous programme

      Cela génère un lien vide et dans les logs ->

      Message:		Error resolving the uri 'courseContent://17fdbeb9-57f7-4225-83e7-512b3cb23434;subProgramContent://f02fb514-73f0-435f-85dd-a389c4b963bf' with type odf
      Location:	org.ametys.runtime.util.SLF4JLogger.warn(SLF4JLogger.java:136)
      Thrown:
      java.lang.NullPointerException
      	at org.ametys.plugins.odfweb.repository.OdfPageResolver._getProgramParent(OdfPageResolver.java:378)
      	at org.ametys.plugins.odfweb.repository.OdfPageResolver._getCoursePath(OdfPageResolver.java:318)
      	at org.ametys.plugins.odfweb.repository.OdfPageResolver.getCoursePage(OdfPageResolver.java:212)
      	at org.ametys.plugins.odfweb.repository.OdfPageResolver.getCoursePage(OdfPageResolver.java:200)
      	at org.ametys.plugins.odfweb.OdfURIResolver.resolve(OdfURIResolver.java:112)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolve(ResolveURIComponent.java:117)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolve(ResolveURIComponent.java:98)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolve(ResolveURIComponent.java:85)
      	at org.ametys.cms.transformation.xslt.ResolveURIComponent.resolve(ResolveURIComponent.java:69)
      	at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.apache.xalan.extensions.ExtensionHandlerJavaClass.callFunction(ExtensionHandlerJavaClass.java:275)
      	at org.apache.xalan.extensions.ExtensionHandlerJavaClass.callFunction(ExtensionHandlerJavaClass.java:440)
      	at org.apache.xalan.extensions.ExtensionsTable.extFunction(ExtensionsTable.java:222)
      	at org.apache.xalan.transformer.TransformerImpl.extFunction(TransformerImpl.java:473)
      	at org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.java:208)
      	at org.apache.xpath.XPath.execute(XPath.java:337)
      	at org.apache.xalan.templates.AVTPartXPath.evaluate(AVTPartXPath.java:135)
      	at org.apache.xalan.templates.AVT.evaluate(AVT.java:499)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1353)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:425)
      	at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:265)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:128)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)
      	at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:425)
      	at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:265)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:425)
      	at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:265)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)
      	at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
      	at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:394)
      	at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:248)
      	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:240
      

            laurence Laurence Aumeunier
            lperier Laurence Perier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: