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

The illustrations of last publications are not loaded

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.3.2
    • 3.3.2
    • None
    • None
    • FF

      
      

      <img alt="" src="/cms/preview/www/_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/l-universite-article-2/_metadata/content/_data/image3-2.jpeg">[code}

      How to reproduce :

      • modify any content
      • insert last publications
      • choose a publication with an illustration ("Campagne des candidatures" for example)
        -> the image does not load

          [CMS-4012] The illustrations of last publications are not loaded

          Seems to be due to a recent change on content access protection ?

          Caused by: org.ametys.runtime.authentication.AccessDeniedException: Access to content defaultWebContent://a53a9208-b0ca-4e2f-be7c-542205b30234 is not allowed for user user1
          	at org.ametys.web.pageaccess.IsContentRestrictedAction.act(IsContentRestrictedAction.java:135)
          	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120)
          

          Laurence Aumeunier added a comment - Seems to be due to a recent change on content access protection ? Caused by: org.ametys.runtime.authentication.AccessDeniedException: Access to content defaultWebContent: //a53a9208-b0ca-4e2f-be7c-542205b30234 is not allowed for user user1 at org.ametys.web.pageaccess.IsContentRestrictedAction.act(IsContentRestrictedAction.java:135) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120)

          • The image url is relative to the content where publications are inserted, not relative to the inserted content
          • Sometimes the url is explicitely a url of an image url (_contents-images), sometimes is the data url (_contents)

          /cms/preview/www/_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/l-universite-article-2/_metadata/content/_data/image3.jpeg
          /cms/preview/www/_contents-images/ametys-internal%253Asites/www/ametys-internal%253Acontents/l-universite-article-2/_metadata/content/_data/43.jpg_75x100
          /cms/preview/www/_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/l-universite-article-2/_metadata/content/_data/33.jpg

          Laurence Aumeunier added a comment - The image url is relative to the content where publications are inserted, not relative to the inserted content Sometimes the url is explicitely a url of an image url (_contents-images), sometimes is the data url (_contents) /cms/preview/www/_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/l-universite-article-2/_metadata/content/_data/image3.jpeg /cms/preview/www/_contents-images/ametys-internal%253Asites/www/ametys-internal%253Acontents/l-universite-article-2/_metadata/content/_data/43.jpg_75x100 /cms/preview/www/_contents/ametys-internal%253Asites/www/ametys-internal%253Acontents/l-universite-article-2/_metadata/content/_data/33.jpg

            ngavalda Nicolas Gavalda (Inactive)
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: