Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-3735

Images are not visible anymore on FO

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.4
    • None
    • None
    • None

        [CMS-3735] Images are not visible anymore on FO

        All urls prefixed by '_' do not work :

        Laurence Aumeunier added a comment - All urls prefixed by '_' do not work : Image from resources explorer http://localhost:8081/_resources/Images/Mn_22b.jpg Newletters http://localhost:8081/_wrapped-content/lettre-decembre-2012.html Images from resources explorer in a content http://localhost:8081/_resources-images/Images/10_200x300.jpg

        Laurence Aumeunier added a comment - Url of image on FO : http://localhost:8081/_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/vie-etudiante-article/_metadata/content/_data/images1.jpg Note images from resources also do not work

        Laurence Aumeunier added a comment - - edited
        • Logs in BO:
        Caused by: java.lang.NullPointerException
        	at org.ametys.web.URIPrefixHandler.getAbsoluteUriPrefix(URIPrefixHandler.java:153)
        	at org.ametys.web.URIPrefixInputModule.getAttribute(URIPrefixInputModule.java:106)
        	at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:272)
        	at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:209)
        	at org.apache.cocoon.components.treeprocessor.variables.VariableResolver.buildParameters(VariableResolver.java:107)
        	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:95)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
        
        • Logs in FO:
        org.apache.cocoon.ProcessingException: Unable to get URL '_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/vie-etudiante-article/_metadata/content/_data/images1.jpg' at URL 'http://localhost:8081/cms/generate/_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/vie-etudiante-article/_metadata/content/_data/images1.jpg?_contextPath=&_baseServerPath=http://localhost:8081&_initialRequest=%2F_contents%2Fametys-internal%25253Asites%2Fwww%2Fametys-internal%25253Acontents%2Fvie-etudiante-article%2F_metadata%2Fcontent%2F_data%2Fimages1.jpg'. Status code is 500
        	at org.ametys.site.GeneratePageAction.act(GeneratePageAction.java:173)
        	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120)
        	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
        	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
        

        Laurence Aumeunier added a comment - - edited Logs in BO: Caused by: java.lang.NullPointerException at org.ametys.web.URIPrefixHandler.getAbsoluteUriPrefix(URIPrefixHandler.java:153) at org.ametys.web.URIPrefixInputModule.getAttribute(URIPrefixInputModule.java:106) at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:272) at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:209) at org.apache.cocoon.components.treeprocessor.variables.VariableResolver.buildParameters(VariableResolver.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:95) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) Logs in FO: org.apache.cocoon.ProcessingException: Unable to get URL '_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/vie-etudiante-article/_metadata/content/_data/images1.jpg' at URL 'http: //localhost:8081/cms/generate/_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/vie-etudiante-article/_metadata/content/_data/images1.jpg?_contextPath=&_baseServerPath=http://localhost:8081&_initialRequest=%2F_contents%2Fametys-internal%25253Asites%2Fwww%2Fametys-internal%25253Acontents%2Fvie-etudiante-article%2F_metadata%2Fcontent%2F_data%2Fimages1.jpg' . Status code is 500 at org.ametys.site.GeneratePageAction.act(GeneratePageAction.java:173) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)

          cedric Cédric Damioli
          laurence Laurence Aumeunier
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Created:
            Updated:
            Resolved: