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

Adding an image to the rich text leads to an error inconsistency checker

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.5.0
    • None
    • None
    • None
    • 4.5 RC3

      insert an image in a richtext

      save

      open the consistency checker

      begin 0, end -1, length 19
      java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 19
          at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
          at java.base/java.lang.String.substring(String.java:1874)
          at org.ametys.cms.transformation.LocalURIResolver.getInfos(LocalURIResolver.java:121)
          at org.ametys.cms.transformation.LocalURIResolver.getLabel(LocalURIResolver.java:263)
          at org.ametys.cms.transformation.ConsistencyChecker.getLabel(ConsistencyChecker.java:167)
          at org.ametys.cms.content.ConsistencyGenerator.generate(ConsistencyGenerator.java:120) 

          [CMS-11129] Adding an image to the rich text leads to an error inconsistency checker

          James Hawken added a comment -

          richtext in the jcr

          <para>
                              <mediaobject class="simple">
                                  <imageobject>
                                      <imagedata type="local" fileref="page-en-construction.png" width="342px" depth="208px"/>
                                  </imageobject>
                              </mediaobject>
                          </para> 

          James Hawken added a comment - richtext in the jcr <para>                     <mediaobject class= "simple" >                         <imageobject>                             <imagedata type= "local" fileref= "page-en-construction.png" width= "342px" depth= "208px" />                         </imageobject>                     </mediaobject>                 </para>

            cbayle Caroline Bayle
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: