Uploaded image for project: 'Glossary'
  1. Glossary
  2. GLOSSARY-28

It is possible to create an empty variant

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.1.1, 1.2.0
    • None
    • None

      How to reproduce

      • Go to glossary tool
      • Create a new definition
      • Enter "Lorem,ipsum," for variants

      => This creates 3 variants: "Lorem", "Ipsum" and "". No content will be visible anymore because of a StringIndexOutOfBoundsException

      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      	at java.lang.String.charAt(Unknown Source)
      	at org.ametys.plugins.glossary.transformation.DefinitionEnhancementHandler._charactersWithDefinitions(DefinitionEnhancementHandler.java:283)
      	at org.ametys.plugins.glossary.transformation.DefinitionEnhancementHandler.characters(DefinitionEnhancementHandler.java:183)
      	at org.ametys.cms.transformation.EnhancementTransformer.characters(EnhancementTransformer.java:95)
      

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

              Created:
              Updated:
              Resolved: