Uploaded image for project: '{RETIRED} XWiki Wiki Manager Application'
  1. {RETIRED} XWiki Wiki Manager Application
  2. XAWM-128

WikiManager.CreateNewWiki is broken under velocity 1.7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.25
    • 1.24
    • Documents
    • None

    Description

      Looks like for some reason Velocity 1.7 does not like anymore things like

      #set ($MSG_ERROR_WIKIALREADYEXISTS = "<div class=\"errormessage\"><span class=\"messagetype\">$msg.get('error'): </span>$msg.get('wikimanager.wikiname.error.wikialreadyexists')</div>")
      

      it produces

      Caused by: org.apache.velocity.runtime.parser.TemplateParseException: Encountered "errormessage" at xwiki:WikiManager.CreateNewWiki[line 100, column 53]
      Was expecting one of:
          <RPAREN> ...
          <WHITESPACE> ...
          "-" ...
          "+" ...
          "*" ...
          "/" ...
          "%" ...
          <LOGICAL_AND> ...
          <LOGICAL_OR> ...
          <LOGICAL_LT> ...
          <LOGICAL_LE> ...
          <LOGICAL_GT> ...
          <LOGICAL_GE> ...
          <LOGICAL_EQUALS> ...
          <LOGICAL_NOT_EQUALS> ...
          
      	at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:131)
      	at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1226)
      	at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:189)
      	... 93 more
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: